Keep data in MLwiN after model estimation to speed up subsequent modeling?

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
erikruzek
Posts: 16
Joined: Tue May 21, 2019 3:57 pm

Keep data in MLwiN after model estimation to speed up subsequent modeling?

Post by erikruzek »

Hi all,

I have been working with large data files (1+ GB) and it would be helpful for me to be able to keep the data in MLwiN to prevent the Stata to MLwiN data transfer that happens each time I fire off a model using runmlwin. Is it possible to avoid the data transfer step and keep my data in MLwiN while still using runmlwin (or R2MLwiN)?

I realize that I could just use MLwiN natively but I am not at all familiar with its syntax or facilities whereas I am quite familiar with Stata (and R) for all my data management, graphing, and reporting needs.

Thanks,
Erik
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: Keep data in MLwiN after model estimation to speed up subsequent modeling?

Post by ChrisCharlton »

Unfortunately this functionality it not available, as the command requires MLwiN to be in a predictable state before it fits each model. You can however use the viewfullmacro, savemacro or saveworksheet options of the command to extract the required syntax, or the worksheet used to fit the model in MLwiN to save yourself having to set the model up manually in MLwiN. You could then use these to fit the series of models directly in MLwiN, however you would also have to manually bring the results back to Stata if you wanted to do further analysis there.
erikruzek
Posts: 16
Joined: Tue May 21, 2019 3:57 pm

Re: Keep data in MLwiN after model estimation to speed up subsequent modeling?

Post by erikruzek »

Thanks for the quick response, Chris! I figured it was a longshot, but your proposed workaround is a good option.
Post Reply