Multiple membership model in Stata
Posted: Mon Jul 01, 2013 9:55 am
I am trying to run a multiple membership model using runmlwin in Stata (linking to MLWin v 2.27). I have used the code provided in section 16.4 of the MLWin MCMC manual (http://www.bristol.ac.uk/cmm/media/runm ... _Models.do). The code runs fine until the last command (i.e. to fit the multiple membership model), when I get the following error message in Stata:
merge: after merge, not all observations from master or matched
(merged result left in memory)
r(9);
My dataset consists of 357 individuals, who belong to 1 of 83 different primary schools (school1) at the first time point, and 1 of 48 different secondary schools (school3) at the second time point. I have created mmweight variables which are 0.5 for each time point. My Stata code is shown below:
qui runmlwin fmi3 cons age sex , ///
level2(school1: cons) ///
level1(serno: cons) ///
nopause
matrix b = e(b)
matrix V = e(V)
runmlwin fmi3 cons age sex, ///
level2(school1: cons) ///
level1(serno: cons) ///
mcmc(on) initsb(b) initsv(V) ///
nopause
runmlwin fmi3 cons age sex, ///
level2(school1: cons, mmids(school1 school3) mmweights(wt1 wt3) residuals(u)) ///
level1(serno: cons) ///
mcmc(on) initsb(b) initsv(V) ///
nopause
If anyone has a suggestion as to what the problem is, I would be very grateful. Thanks, Stephen.
merge: after merge, not all observations from master or matched
(merged result left in memory)
r(9);
My dataset consists of 357 individuals, who belong to 1 of 83 different primary schools (school1) at the first time point, and 1 of 48 different secondary schools (school3) at the second time point. I have created mmweight variables which are 0.5 for each time point. My Stata code is shown below:
qui runmlwin fmi3 cons age sex , ///
level2(school1: cons) ///
level1(serno: cons) ///
nopause
matrix b = e(b)
matrix V = e(V)
runmlwin fmi3 cons age sex, ///
level2(school1: cons) ///
level1(serno: cons) ///
mcmc(on) initsb(b) initsv(V) ///
nopause
runmlwin fmi3 cons age sex, ///
level2(school1: cons, mmids(school1 school3) mmweights(wt1 wt3) residuals(u)) ///
level1(serno: cons) ///
mcmc(on) initsb(b) initsv(V) ///
nopause
If anyone has a suggestion as to what the problem is, I would be very grateful. Thanks, Stephen.