MlWin gives different results to Stata/R
Posted: Mon Aug 17, 2015 5:03 pm
I carried out a multilevel analysis in MlWin, using the Markov Chain Monte Carlo estimation procedure. The MCMC estimation procedure is used to take into account the cross-classified structure (see attachment).
I calculated the same model in R and Stata. Some of the fixed effects are quite similar, but the effects regarding temporal variation (age and cohort) and parental education differ (as you can see in the table: see attachment).
Does anyone have an explanation?
It is noteworthy that there is a very high correlation between cohort (level-2 characteristic) and age (level-1 characteristic): r = 0.97 . However, this is normally not a problem for the type of analysis I conducted, that is a hierarchical age-period-cohort analysis, as carried out by Andrew Bell (Life-course and cohort trajectories of mental health in the UK, 1991-2008 ā A multilevel age-period-cohort analysis)
----------
(a) Stata ā command: xtmixed health gender ib0.Parentaleducation c.education##c.cohort c.education##c.age || _all: R.cntry|| _all: R.cohorts|| periodcountry:, ml var
(b) R ā command: model1_MCMC <- MCMCglmm (health ~1 + gender + factor(Parentaleducation) + education + age + cohort + education*cohort + education*age, random = ~ cntry + periodcountry + cohorts, nitt=20000, burnin = 2000, data = data)
I calculated the same model in R and Stata. Some of the fixed effects are quite similar, but the effects regarding temporal variation (age and cohort) and parental education differ (as you can see in the table: see attachment).
Does anyone have an explanation?
It is noteworthy that there is a very high correlation between cohort (level-2 characteristic) and age (level-1 characteristic): r = 0.97 . However, this is normally not a problem for the type of analysis I conducted, that is a hierarchical age-period-cohort analysis, as carried out by Andrew Bell (Life-course and cohort trajectories of mental health in the UK, 1991-2008 ā A multilevel age-period-cohort analysis)
----------
(a) Stata ā command: xtmixed health gender ib0.Parentaleducation c.education##c.cohort c.education##c.age || _all: R.cntry|| _all: R.cohorts|| periodcountry:, ml var
(b) R ā command: model1_MCMC <- MCMCglmm (health ~1 + gender + factor(Parentaleducation) + education + age + cohort + education*cohort + education*age, random = ~ cntry + periodcountry + cohorts, nitt=20000, burnin = 2000, data = data)