Does runmlwin work with Stata 9 and Stata 10?

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
babdous
Posts: 1
Joined: Thu Oct 13, 2011 10:34 am

Does runmlwin work with Stata 9 and Stata 10?

Post 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
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Does runmlwin work with Stata 9 and Stata 10?

Post 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
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Does runmlwin work with Stata 9 and Stata 10?

Post 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
------------------------------------------------------------------------------
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Does runmlwin work with Stata 9 and Stata 10?

Post 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

Code: Select all

. ssc install runmlwin, replace
Please do let us know whether runmlwin works for your colleague on his version 10.1 of Stata.

Best wishes

George
Post Reply