Page 1 of 1

Unable to view MLwiN using runmlwin

Posted: Wed Oct 08, 2014 3:27 am
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

Re: Unable to view MLwiN using runmlwin

Posted: Wed Oct 08, 2014 9:40 am
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?

Re: Unable to view MLwiN using runmlwin

Posted: Thu Oct 09, 2014 7:49 am
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

Re: Unable to view MLwiN using runmlwin

Posted: Thu Oct 09, 2014 8:04 am
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

Re: Unable to view MLwiN using runmlwin

Posted: Sun Oct 12, 2014 8:07 am
by jnrachele
Thank you Chris. Runmlwin is now working as expected.

Thanks again!
Jerome