global path

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
olesereetsi
Posts: 3
Joined: Tue Sep 17, 2013 1:08 pm

global path

Post 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
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: global path

Post 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
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: global path

Post 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.
olesereetsi
Posts: 3
Joined: Tue Sep 17, 2013 1:08 pm

Re: global path

Post 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
olesereetsi
Posts: 3
Joined: Tue Sep 17, 2013 1:08 pm

Re: global path

Post by olesereetsi »

Dear Chris
Thank you for your suggestion to update my mlwin to 2.26.
Olly
LisaAsch
Posts: 5
Joined: Thu Jan 09, 2014 3:48 pm

Re: global path

Post 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
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: global path

Post 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.
Jascalla
Posts: 16
Joined: Fri Oct 11, 2013 9:50 pm

Re: global path

Post 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
LisaAsch
Posts: 5
Joined: Thu Jan 09, 2014 3:48 pm

Re: global path

Post 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
Post Reply