Page 1 of 1

global path

Posted: Tue Sep 17, 2013 1:25 pm
by olesereetsi
Good day
I need to fit a 2 level variance components logit model using runmlwin. I have MLWIN 2.24 installed in my computer. I was wondering if I need to specify the global MLwiN_path and how do I specify it? Thanks and I look forward to your assistance.

Best
Olly

Re: global path

Posted: Tue Sep 17, 2013 4:43 pm
by GeorgeLeckie
Dear Olly,

Yes, to use runmlwin you must tell Stata where MLwiN is installed on your computer

The easiest way to do this is via specifying a global macro.

To do this, you simply need to add the following line of code to your do-file

Code: Select all

. global MLwiN_path "C:\Program Files\MLwiN v2.24\i386\mlwin.exe"
You will need to adapt the above code to match the location of MLwiN on your computer

Best wishes

George

Re: global path

Posted: Tue Sep 17, 2013 5:01 pm
by ChrisCharlton
The current version of runmlwin also requires a minimum MLwiN version of 2.26, so you will also need to install the update available from http://www.bris.ac.uk/cmm/software/mlwi ... rades.html.

Re: global path

Posted: Tue Sep 17, 2013 5:56 pm
by olesereetsi
Dear George
Thank you for your assistance. I managed to specify the path for mLwiN. I however get an error that the mlwin does not exist.I will try to update it to version 2.26
Olly

Re: global path

Posted: Tue Sep 17, 2013 6:14 pm
by olesereetsi
Dear Chris
Thank you for your suggestion to update my mlwin to 2.26.
Olly

Re: global path

Posted: Thu Jan 09, 2014 3:58 pm
by LisaAsch
Dear runmlwin users,

I am struggling to get runlmwin to work because I am unable to specify the global path where my MLWiN programme (2.26) is installed. It seems that the location is hidden, which means that I (and IT support) can't identify a path to enter in Stata. The only paths we find are shortcuts, none of which work when entering them in Stata.
I suspect this must have happened when it was installed. I tried installing the 2.28 trial version, but encounter the problem.

Any advice on this matter would be very much appreciated.

Kind regards,
Lisa

Re: global path

Posted: Fri Jan 10, 2014 10:13 am
by ChrisCharlton
I'm not sure why these directories would be hidden on your computer, however assuming that you are running a 64-bit operating system the default path for MLwiN 2.26 is:

C:\Program Files (x86)\MLwiN v2.26\i386\mlwin.exe

and the default for the trial version is:

C:\Program Files (x86)\MLwiN trial\i386\mlwin.exe

so you could see whether you have any luck trying these.

If this doesn't work you could try reinstalling MLwiN and selecting "advanced" in the first set-up screen. This will allow you to specify your own installation location, which you can then refer to from Stata.

Re: global path

Posted: Sun Jan 12, 2014 1:05 pm
by Jascalla
Hi Olly,
I had similar problem and same error message when I tried declaring the global MLwiN path for the first time on my computer due to wrong specification of my Mlwin path.
So in my second attempt, I open my drive C where my program files are, then open program files and located Mlwin, I then open it and saw i386. After this, I simply copied the whole of this path from the menu bar at the top and I simply just added mlwin.exe with backslash as seen below and I was successful in that second attempt.
global MLwiN_path "C:\Program Files (x86)\MLwiN v2.28\i386\mlwin.exe"
So, try to first locate the location of your mlwin software on your computer and try my steps above and see how it goes.
Hope this helps.
Thanks.
-Jascalla

Re: global path

Posted: Tue Jan 28, 2014 4:47 pm
by LisaAsch
Thank you Chris.
For some reason it really was not possible to locate where on the computer the actual program had been installed.
It was finally resolved by re-installing MLWiN using the "Advanced" option like you suggested.

Many thanks,
Lisa