"invalid name" - runmlwin with MacOS and STATA 15
Posted: Wed Aug 22, 2018 6:43 pm
Dear members,
I have a problem with running runmlwin through the Stata 15 in MacOS High Sierra.
I run a two-level model in the Stata. It results in '...invalid name'. I used to run the same model on another Mac (with STATA 14) and it worked. Also, I run an old stata script adopting runmlwin (for Windows) which did not work on the current MacOS (after changing the runmlwin macro paths).
After reading similar posts on this Forum, I guess that the mlnscript path is incorrect. The current one is:
global MLwiN_path "/Volumes/mln/mlnscript"
global MLwiNScript_path "/Volumes/mln/mlnscript"
This is the same path that successfully worked on the previous Mac (Stata 14) and where the four files exctracted from the MLN.dmg apparently ended up on ("/Volumes/mln/libshp.dylib ; exit;" is the message appearing on the Terminal after executing MLN.dmg).
Here is the command of the script:
#delimit;
runmlwin y `Is1' `Is3' `Ir1' `Ir3',
level2(l2id: Is Ir , diagonal)
level1(l1id:)
discrete(distribution(binomial) link(logit) denom(exposure))
mcmc(burnin(5000) chain(1000) orth seed(1)) initsprevious batch
;
#delimit cr
The local macros, such as`Is1', stand for the covariates.
To be sure, I run also the example on the Mlwin website, which yields the same outcome.
. use http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial, clear
. runmlwin normexam cons standlrt, level2(school: cons) level1(student:cons) nopause
. . . invalid name
Please see attached file for 'set trace on' command. The errore is displayed at page number 25 / highlighted
Thank you very much.
Regards,
I have a problem with running runmlwin through the Stata 15 in MacOS High Sierra.
I run a two-level model in the Stata. It results in '...invalid name'. I used to run the same model on another Mac (with STATA 14) and it worked. Also, I run an old stata script adopting runmlwin (for Windows) which did not work on the current MacOS (after changing the runmlwin macro paths).
After reading similar posts on this Forum, I guess that the mlnscript path is incorrect. The current one is:
global MLwiN_path "/Volumes/mln/mlnscript"
global MLwiNScript_path "/Volumes/mln/mlnscript"
This is the same path that successfully worked on the previous Mac (Stata 14) and where the four files exctracted from the MLN.dmg apparently ended up on ("/Volumes/mln/libshp.dylib ; exit;" is the message appearing on the Terminal after executing MLN.dmg).
Here is the command of the script:
#delimit;
runmlwin y `Is1' `Is3' `Ir1' `Ir3',
level2(l2id: Is Ir , diagonal)
level1(l1id:)
discrete(distribution(binomial) link(logit) denom(exposure))
mcmc(burnin(5000) chain(1000) orth seed(1)) initsprevious batch
;
#delimit cr
The local macros, such as`Is1', stand for the covariates.
To be sure, I run also the example on the Mlwin website, which yields the same outcome.
. use http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial, clear
. runmlwin normexam cons standlrt, level2(school: cons) level1(student:cons) nopause
. . . invalid name
Please see attached file for 'set trace on' command. The errore is displayed at page number 25 / highlighted
Thank you very much.
Regards,