Pre or post file PRE does not exist & Warning: getversion

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
MartinOFlaherty
Posts: 1
Joined: Tue Mar 13, 2012 10:48 pm

Pre or post file PRE does not exist & Warning: getversion

Post by MartinOFlaherty »

Hi,

I'm encountering two problems trying to make runmlwin work. I am using stata 11.2 and MLwiN 2.25, and have verified that runmlwin is up to date and fully installed.

As a general note, I'm specifying my MLwiN directory via the mlwinpath option on each estimation command rather than as a global macro.

The first problem arises for all models which I try to run - the model runs fine, but additionally returns the following message:
Warning: getversion plugin could not be loaded
I've followed the advice given in this topic: http://www.cmm.bristol.ac.uk/forum/view ... ?f=3&t=280 All of the tests suggested in that topic work exactly as described and indicate that the getversion plugin should work fine.

The second problem arises only for models estimated via MCMC - MLwiN returns the error message:
Error while obeying batch file C:\DOCUMENTS~\temp\ST_0600007e.tmp at line number 325: PREF: PRE

Pre or Post file PRE does not exist
I've followed the advice given here http://www.bristol.ac.uk/cmm/software/s ... rrors.html and checked that files PRE and POST are in the 'discrete' folder of my MLwiN directory (they are) and that the 'Fpath', 'pre' and 'post' options are specified correctly (they are)

Any suggestions? Help would be much appreciated.

Regards,

Martin

EDIT: I tried specifying my MLwiN directory via global macro and it fixed both problems, although I don't understand why exactly - will leave the topic here for anyone else who encounters the same difficulties. For anyone who (like me) wasn't sure how to use the global macro simply enter in stata's command window (editing to fit your MLwiN filepath obviously): global MLwiN_path C:\Program Files\MLwiN v2.25\mlwin.exe
ChrisCharlton
Posts: 1354
Joined: Mon Oct 19, 2009 10:34 am

Re: Pre or post file PRE does not exist & Warning: getversio

Post by ChrisCharlton »

Thanks for reporting this, it appears to be a bug. The contents of the global macro and the command option should be stored in a local macro, and then this used within the command. It appears that in some places, such as discrete models, we are using the global macro directly. I will fix this for the next release.
Post Reply