Bootstrap runmlwin

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/
johannesmueller
Posts: 25
Joined: Sun Jul 29, 2018 12:37 pm

Re: Bootstrap runmlwin

Post by johannesmueller »

Edit: Of course the cross is necessary. Given that the resulting dataset of 200,000 obs * 1,000 iterations becomes unmanageable, would you have any suggestions on how this could still be plotted?
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: Bootstrap runmlwin

Post by ChrisCharlton »

If you wanted to avoid cross you could probably do the calculation in Mata, as in my previous example, but this is a bit more complicated.

George's code already reduces the size of the dataset used in the prediction by throwing away duplicate combinations in the variables of interest (the duplicates drop line). Presumably you could take this further by predicting for a subset of values that cover the typical range for each variable? I suspect that Stata wouldn't be particularly happy about plotting 200,000 predicted values on a graph in any case.
Post Reply