Page 1 of 1
Does runmlwin work with Stata 9 and Stata 10?
Posted: Thu Oct 13, 2011 11:03 am
by babdous
Hi
A colleague, who has stata 10.1, tried to use a stata-mlwin code that I wrote under stata 11.2.
He got the following error message
this is version 10.1 of Stata; it cannot run version 11.2 programs
You can purchase the latest version of Stata by visiting
http://www.stata.com.
r(9);
Is it possible to use runmlwin with earlier versions of STATA?
Here is the code we are trying to run.
Code: Select all
use http://www.stata-press.com/data/mlmus2/wine, clear
xtset judge
generate Con_Temp = contact*temp
global MLwiN_path C:\Program Files (x86)\MLwiN trial\MLwiN.exe
generate bottle = _n
generate cons = 1
sort judge bottle
runmlwin dichot cons contact temp ///
, level2(judge: cons ) ///
level1(bottle) ///
discrete(distribution(binomial) link(logit) denominator(cons) mql1) ///
nopause
estimates store wine_m1
Kind regards
Belkacem
Re: Does runmlwin work with Stata 9 and Stata 10?
Posted: Thu Oct 13, 2011 11:46 am
by GeorgeLeckie
Dear Belkacem,
Unfortunately runmlwin currently only works with Stata 11 and Stata 12.
We will look into what is required to make it backwards compatible with Stata 10 and earlier versions and then post what we intend to do about backwards compatibility here shortly.
Best wishes
George
Re: Does runmlwin work with Stata 9 and Stata 10?
Posted: Mon Oct 24, 2011 11:51 am
by GeorgeLeckie
Dear Belkacem,
Just to keep you informed, we have made some progress with making
runmlwin work in Stata 9 and 10 as well as Stata 11 and Stata 12.
We hope to release an updated version of
runmlwin via SSC soon (
. ssc install runmlwin, replace). We will let you and others know when we do so by posting a message on this forum.
Meanwhile, below is the Stata 10 output for your model.
Best wishes
George
Code: Select all
. runmlwin dichot cons contact temp, ///
> level2(judge: cons ) ///
> level1(bottle) ///
> discrete(distribution(binomial) link(logit) denominator(cons) mql1) ///
> nopause
MLwiN 2.24 multilevel model Number of obs = 72
Binomial logit response model
Estimation algorithm: IGLS, MQL1
-----------------------------------------------------------
| No. of Observations per Group
Level Variable | Groups Minimum Average Maximum
----------------+------------------------------------------
judge | 9 8 8.0 8
-----------------------------------------------------------
Run time (seconds) = 1.50
Number of iterations = 7
------------------------------------------------------------------------------
dichot | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cons | -4.071874 1.0101 -4.03 0.000 -6.051634 -2.092113
contact | 1.810248 .6926762 2.61 0.009 .4526272 3.167868
temp | 3.03119 .8525284 3.56 0.000 1.360265 4.702115
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
Level 2: judge |
var(cons) | 1.242507 1.046163 -.8079348 3.292949
------------------------------------------------------------------------------
Re: Does runmlwin work with Stata 9 and Stata 10?
Posted: Fri Nov 18, 2011 7:12 pm
by GeorgeLeckie
Dear Belkacem,
The latest version of runmlwin is now available and should work in Stata versions 9, 10, 11 and 12
Upgrade to the latest version of runmlwin by issuing the following command
Please do let us know whether runmlwin works for your colleague on his version 10.1 of Stata.
Best wishes
George