Page 1 of 1

A question about error:“Macro file not found(OBEY)”

Posted: Sat Apr 14, 2012 11:15 am
by vinkchen
Hi, i am a beginner of runmlwin, now i am following the guide to learn. However,when i ran the example1 in help runmlwin in stata12 , there is a error that"Macro file not found(OBEY)".I have run the following command in stata:
.global MLwiN_path "C:\Program Files\MLwiN trial\mlwin.exe"
. use http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial, clear
. runmlwin normexam cons standlrt, level2(school: cons) level1(student: cons) nopause
and then the Mlwin mlwin started, then the Stata12 prompted the error "Macro file not found(OBEY)".
I would like to know what the problem is?

thinks

vinkchen

Re: A question about error:“Macro file not found(OBEY)”

Posted: Mon Apr 16, 2012 12:57 pm
by ChrisCharlton
Could you please try running the command again, but this time with the option viewfullmacro added to the end?, i.e.

Code: Select all

runmlwin normexam cons standlrt, level2(school: cons) level1(student: cons) nopause viewfullmacro
This should pop up a window containing the MLwiN commands to fit the model. Could you let us know the file name that it is using for this (it should be in the address bar at the top of the window), and the contents of the script file that it is displaying?

Re: A question about error:“Macro file not found(OBEY)”

Posted: Wed Apr 18, 2012 8:10 am
by vinkchen
Hi ChrisCharlton ,
I ran the command with the option viewfullmacro added to the end, and the model ran properly in MLwiN. And then i ran the command without the option viewfullmacro, the error disappeared and the model also be estimated properly.
Thanks for your enthusiastic help.
vinkchen