------------------------------------------------------------------------------- name: log: Q:\C-modelling\runmlwin\website\logfiles\2024-10-11\18\12.3.smcl log type: smcl opened on: 11 Oct 2024, 18:43:25 . **************************************************************************** . * Module 12: Cross-Classified Models - Stata Practical . * . * P12.3: An Alternative Parameterisation . * . * George Leckie . * Centre for Multilevel Modelling, 2011 . **************************************************************************** . * Stata do-file to replicate all analyses using runmlwin . * . * George Leckie . * Centre for Multilevel Modelling, 2013 . * http://www.bristol.ac.uk/cmm/software/runmlwin/ . **************************************************************************** . . use "http://www.bristol.ac.uk/cmm/media/runmlwin/12.3.dta", clear . . xtmixed attain || _all: R.neighid || schid:, mle variance Performing EM optimization: Performing gradient-based optimization: Iteration 0: Log likelihood = -3178.3841 Iteration 1: Log likelihood = -3178.3557 Iteration 2: Log likelihood = -3178.3557 Computing standard errors: Mixed-effects ML regression Number of obs = 2,310 Grouping information ------------------------------------------------------------- | No. of Observations per group Group variable | groups Minimum Average Maximum ----------------+-------------------------------------------- _all | 1 2,310 2,310.0 2,310 schid | 17 22 135.9 286 ------------------------------------------------------------- Wald chi2(0) = . Log likelihood = -3178.3557 Prob > chi2 = . ------------------------------------------------------------------------------- - attain | Coefficient Std. err. z P>|z| [95% conf. interval > ] ---------------+--------------------------------------------------------------- - _cons | .0753532 .0722216 1.04 0.297 -.0661987 .21690 > 5 ------------------------------------------------------------------------------- - ------------------------------------------------------------------------------ Random-effects parameters | Estimate Std. err. [95% conf. interval] -----------------------------+------------------------------------------------ _all: Identity | var(R.neighid) | .1412201 .0218651 .104257 .191288 -----------------------------+------------------------------------------------ schid: Identity | var(_cons) | .075445 .0316491 .0331553 .1716755 -----------------------------+------------------------------------------------ var(Residual) | .7990182 .0263652 .7489788 .8524007 ------------------------------------------------------------------------------ LR test vs. linear model: chi2(2) = 207.44 Prob > chi2 = 0.0000 Note: LR test is conservative and provided only for reference. . . estimates store model2 . end of do-file