Saving jags.model in RData file

别等时光非礼了梦想. 提交于 2019-12-13 02:36:22

问题


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.

来源:https://stackoverflow.com/questions/20287535/saving-jags-model-in-rdata-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!