I am using runmlwin together with mi estimate to run my models and combine the results from 5 imputed datasets and it is working really well for me (thank you ever so much CMM team!). I just have a couple of very basic questions:
1) When I store the parameters from the combined results, estimated using IGLS, and try to use them as starting values for my MCMC estimation I get the following error message: "The inits model option is invalid: No parameters in the stored model match those specified in the current model".
This is part of the code I am trying to run:
Code: Select all
*IGLS
mi estimate, vartable cmdok dots: ///
runmlwin SPAN CONS GRSTART GRSTART2 if (STCOHORT==1), ///
level2 (STUDID: CONS GRSTART, residuals(u)) ///
level1(GRADE: CONS) nopause forcesort
estimates store model1spancoh1igls
*** MCMC
mi estimate, vartable cmdok dots: ///
runmlwin SPAN CONS GRSTART GRSTART2 if STCOHORT==1, ///
level2 (STUDID: CONS GRSTART, residuals(u)) ///
level1(GRADE: CONS) ///
mcmc(burnin(1000) chain(10000)) initsmodel(model1spancoh1igls) nopause forcesort
2) When I use mi estimate, residuals are not created/stored in the dataset. I was wondering whether combined residuals can be created and stored so I can use them for residual graphs and prediction lines, as using the residuals obtained from only one of the imputation would not be as accurate. Do you have any suggestions?
Many thanks!!!
Lorena