------------------------------------------------------------------------------- name: log: Q:\C-modelling\runmlwin\website\logfiles\2020-03-27\16\12.3.smcl log type: smcl opened on: 27 Mar 2020, 18:22:45 . **************************************************************************** . * 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 ------------------------------------------------------------- | 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 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | .0753532 .0722216 1.04 0.297 -.0661987 .216905 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ 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