Saving jags.model in RData file

Is there any way to save a jags.model() object into a RData or txt file ?

To perform MCMC on a better computer, I have to save my model on one and using it in a new workspace. But I've some difficulty to use "save()" and "load()" function on R. Thanks for your advices.

Added:

I tried:

jags <- jags.model('regression.bug', data = my.data, n.chains = 4, n.adapt = 1000)

Then I would like save "jags"

save( jags , file="jags.RData")

It's look like if it's saved. But, when I try:

ld.jags <- load( "jags.RData" )

ld.jags

[1] "jags"

And I don't know How I could use "ld.jags" to perform my analysis.

链接地址: http://www.djcxy.com/p/38336.html

上一篇: 如何对RData文件进行子集分配过大?

下一篇: 在RData文件中保存jags.model