Unable to view MLwiN using runmlwin

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
jnrachele
Posts: 3
Joined: Wed Oct 08, 2014 3:14 am

Unable to view MLwiN using runmlwin

Post by jnrachele »

Hi All,

My runmlwin will only work when I use the nopause command, and MLwiN will quickly open and shut and I am unable to view the equations window.

When I do not use a command without nopause, I receive an error message.

For example:

. runmlwin bmi1 cons, level2(cd2006_1: cons) level1(id:cons)

The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button.

r(198);

I would like to view the equations window, and at times abort the macro and continue working in MLwiN. I am using StataSE v13.1 and MLwiN v2.30.

Thank you in advance for your help.

Jerome
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Unable to view MLwiN using runmlwin

Post by ChrisCharlton »

I'm not sure why this would be the case as the code run for the two options should be almost identical. Can you confirm that the examples in the -runmlwin- help file also have the same problem with nopause?

Would you be able to add the viewfullmacro option to your command with and without nopause and then post the two versions of the generated MLwiN macro?

Finally, could you issue the following two commands prior to calling -runmlwin-:

Code: Select all

set tracedepth 2
set trace on
and then post the output from Stata?
jnrachele
Posts: 3
Joined: Wed Oct 08, 2014 3:14 am

Re: Unable to view MLwiN using runmlwin

Post by jnrachele »

Hi Chris,

I also have this problem when I use ". use "http://www.bristol.ac.uk/cmm/media/runm ... torial.dta", clear"

I have attached the viewfullmacro with nopause, viewfullmacro without nopause, and then I've tried to run the model again after set tracedepth2 and set trace on.

Thank you again for your help.

Jerome
Attachments
View full macro - without nopause.docx
(13.93 KiB) Downloaded 532 times
View full macro - with nopause.docx
(13.72 KiB) Downloaded 508 times
Trace on and tracedepth2.docx
(66.32 KiB) Downloaded 557 times
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Unable to view MLwiN using runmlwin

Post by ChrisCharlton »

It looks as if your MLwiN_path global is set to:

Code: Select all

C:\Program Files (x86)\MLwiN v2.30\x64\mlnscript.exe
which is a command line only script version of the MLwiN engine. If you want to be able to pause the model fit an see the equations window you would instead have to use the following:

Code: Select all

C:\Program Files (x86)\MLwiN v2.30\i386\mlwin.exe
jnrachele
Posts: 3
Joined: Wed Oct 08, 2014 3:14 am

Re: Unable to view MLwiN using runmlwin

Post by jnrachele »

Thank you Chris. Runmlwin is now working as expected.

Thanks again!
Jerome
Post Reply