Page 1 of 1

MCMC adding iterations and specifying diagonal matrix

Posted: Sun Apr 19, 2020 3:36 pm
by tjsduq64
Hi,

1) I know in MLwiN, I can run additional interations after running some. For example, I run 500 burnins and 5000 iterations. But, if I find that for some parameters, I need to run more, I can just add more iterations. Can I do this in R using R2MLwiN?

I see that in R examples for MCMC manual, in Chapter 13.5, it just runs another model, rather than adding iterations using "More".

2) when I use separate coding to include three variables in random parts, I also get the covariances between these terms. I know in IGLS, I can specify diagonal matrix by using "clre" or "smat". How can I do this in MCMC?

Sun

Re: MCMC adding iterations and specifying diagonal matrix

Posted: Mon Apr 20, 2020 2:54 pm
by ChrisCharlton
1) Due to the difficulty of coordinating running extra iterations between R and MLwiN we have not currently implemented this an option from R2MLwiN. What you could do however is to use the saveworksheet option in R2MLwiN to save a copy of the MLwiN worksheet after the initial model fit. You could then load this into MLwiN and run extra iterations there, although you would not be able to get the results easily back into R.

2) The clre and smat options that you have used with IGLS should also work the same way with MCMC models.

Re: MCMC adding iterations and specifying diagonal matrix

Posted: Tue Apr 21, 2020 2:20 am
by tjsduq64
That is a good alternative, thanks!