Hi Anja,
This works for me (see below). Perhaps you do not have the latest version of runmlwin? You can make sure you have the latest version by reinstalling the command
. ssc install runmlwin, replace
You have fitted the model by MCMC. The reported parameter estimate and standard error are the mean and standard deviation of each parmater chain. This is why the column header says Std. Dev. rather than Std. Err. For more details, see ...
The following cross-classified MCMC model where I specify the zratio option works for me...
Code: Select all
use http://www.bristol.ac.uk/cmm/media/runmlwin/xc, clear
rename sex female
matrix b = (0,0,0,.33,.33,.33)
runmlwin attain cons vrq female, ///
level3(sid: cons) ///
level2(pid: cons) ///
level1(pupil: cons) ///
mcmc(cc) initsb(b) ///
nopause
runmlwin, zratio
where the associated output is ...
Code: Select all
. use http://www.bristol.ac.uk/cmm/media/runmlwin/xc, clear
.
. rename sex female
.
. matrix b = (0,0,0,.33,.33,.33)
.
. runmlwin attain cons vrq female, ///
> level3(sid: cons) ///
> level2(pid: cons) ///
> level1(pupil: cons) ///
> mcmc(cc) initsb(b) ///
> nopause
MLwiN 2.25 multilevel model Number of obs = 3435
Normal response model
Estimation algorithm: MCMC
-----------------------------------------------------------
| No. of Observations per Group
Level Variable | Groups Minimum Average Maximum
----------------+------------------------------------------
sid | 19 92 180.8 290
pid | 148 1 23.2 72
-----------------------------------------------------------
Burnin = 500
Chain = 5000
Thinning = 1
Run time (seconds) = 9.61
Deviance (dbar) = 14722.51
Deviance (thetabar) = 14640.15
Effective no. of pars (pd) = 82.36
Bayesian DIC = 14804.87
------------------------------------------------------------------------------
attain | Mean Std. Dev. ESS P [95% Cred. Interval]
-------------+----------------------------------------------------------------
cons | -10.03677 .2782066 3395 0.000 -10.58556 -9.488309
vrq | .1595779 .00278 4032 0.000 .1542097 .1650367
female | .1153955 .0707506 4990 0.050 -.0219772 .2540834
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Mean Std. Dev. ESS [95% Cred. Int]
-----------------------------+------------------------------------------------
Level 3: sid |
var(cons) | .0186722 .0226424 341 .0006828 .0824305
-----------------------------+------------------------------------------------
Level 2: pid |
var(cons) | .2793266 .0634311 756 .1687999 .419538
-----------------------------+------------------------------------------------
Level 1: pupil |
var(cons) | 4.257366 .105822 4027 4.056459 4.472385
------------------------------------------------------------------------------
.
. runmlwin, zratio
MLwiN 2.25 multilevel model Number of obs = 3435
Normal response model
Estimation algorithm: MCMC
-----------------------------------------------------------
| No. of Observations per Group
Level Variable | Groups Minimum Average Maximum
----------------+------------------------------------------
sid | 19 92 180.8 290
pid | 148 1 23.2 72
-----------------------------------------------------------
Burnin = 500
Chain = 5000
Thinning = 1
Run time (seconds) = 9.61
Deviance (dbar) = 14722.51
Deviance (thetabar) = 14640.15
Effective no. of pars (pd) = 82.36
Bayesian DIC = 14804.87
------------------------------------------------------------------------------
attain | Mean Std. Dev. z P>|z| [95% Cred. Interval]
-------------+----------------------------------------------------------------
cons | -10.03677 .2782066 -36.08 0.000 -10.58556 -9.488309
vrq | .1595779 .00278 57.40 0.000 .1542097 .1650367
female | .1153955 .0707506 1.63 0.103 -.0219772 .2540834
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Mean Std. Dev. ESS [95% Cred. Int]
-----------------------------+------------------------------------------------
Level 3: sid |
var(cons) | .0186722 .0226424 341 .0006828 .0824305
-----------------------------+------------------------------------------------
Level 2: pid |
var(cons) | .2793266 .0634311 756 .1687999 .419538
-----------------------------+------------------------------------------------
Level 1: pupil |
var(cons) | 4.257366 .105822 4027 4.056459 4.472385
------------------------------------------------------------------------------
Best wishes
George