Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!
Hi,
I am trying to run a multiple membership model using runmlwin in Stata (linking to MLWin v 2.30). I have used the code provided in section 16.4 of the MLWin MCMC manual. The code runs fine until the last command, when I get the following error message in Stata:
“Number of variables in mmids2() must equal number of variables in mmweights2().;”
My dataset is a cohort of 1000 individuals, who belong to 4 different neighborhoods along their life (sams1-sams4). I have created mmweight variables for each time point. I think I have the same number of variables in both the sams and the weights. My Stata code is shown below:
Might it be that there is some other variable lurking within the range of variables specified by sams1-sams4 or weight1-weight4? You can check this easily enough by issuing the following commands
Thanks, it worked. I have another query. In the same example, the software gives me this error:
"Error, the MM ID variable 4 for observation 2 is present but a zero MM weight has been specified for it"
Data are in compact form. I coded the weights as 0 when the person had been in the same neighborhood. Or should I recode the neighborhoods as 0?
For instance, in case n=1, N3 and N4 should be coded as 0? or there are other solution?
Thanks George. Sorry one more issue:
MLwiN gives me another error message: "error while obeying batch file C:\XXX at line number 90: MCMC 0 500 1 5.8 50 10 1 1 1 1 1 1"
I read in another post that it might be due to the starting values. Any suggestion how to solve this?