Search found 1279 matches

by ChrisCharlton
Wed Jul 28, 2021 12:53 pm
Forum: MLwiN user forum
Topic: Problem adding quadratic term
Replies: 2
Views: 560

Re: Problem adding quadratic term

I believe that this is probably due to saving and loading a worksheet containing a model in SPSS format. As the data in SPSS files has to be square MLwiN will fill in gaps with the "missing" value where this is not the case for the data being saved. You can see this from your screenshot wi...
by ChrisCharlton
Tue Jul 27, 2021 12:38 pm
Forum: MLwiN user forum
Topic: Multilevel Survival Analysis
Replies: 2
Views: 548

Re: Multilevel Survival Analysis

These macros have not been developed or tested for some time, but as far as I am aware these ought to still run on recent versions of the software with minimal modification. Here is a post from a recent attempt to use them a few years ago: viewtopic.php?t=2170
by ChrisCharlton
Tue Jul 27, 2021 11:50 am
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

I've asked George if he has any examples, but in the mean time it might be worth looking through the replication materials for the LEMMA course ( https://www.cmm.bris.ac.uk/lemma/ ), in particular modules 6 ( Regression models for binary responses ) and 7 ( Multilevel models for binary responses ) p...
by ChrisCharlton
Mon Jul 26, 2021 6:31 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

To use the MCMC chains you would apply the normal prediction formula, except instead of single values for the parameter estimates you would use the chain of values instead. This would then give you a chain of predicted values where you can use the mean or median of the values as your prediction esti...
by ChrisCharlton
Mon Jul 26, 2021 2:38 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

It seems that the bootstrap command doesn't like something about the way that we have named the output model parameters (I suspect the var(cons) parameter). If I adjust your example to rename this before returning the results from myreg then the following does appear to give results: clear all use h...
by ChrisCharlton
Fri Jul 23, 2021 12:36 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

If you could adapt your example to a dataset that I could use to replicate this (for example the MLwiN tutorial data) then I can attempt to work out where this error is coming from.
by ChrisCharlton
Fri Jul 16, 2021 2:24 pm
Forum: Realcom user forum
Topic: Help me please
Replies: 1
Views: 537

Re: Help me please

Unfortunately there is not an easy way to set the starting values when running models in Realcom. I have not tested this but it appears that if you place a file named L2VARSTART into the Realcom-Impute directory then the values in this will be loaded as the starting values for the level-2 variances,...
by ChrisCharlton
Wed Jul 14, 2021 3:53 pm
Forum: runmlwin user forum
Topic: Keep data in MLwiN after model estimation to speed up subsequent modeling?
Replies: 2
Views: 659

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

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...
by ChrisCharlton
Mon Jul 12, 2021 10:24 am
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

This is not something that we are particularly familiar with, however the examples I found seem to add rclass rather than eclass to the bootstrap program and appear to require you to pass on any required outputs from the estimation command using return . Bootstrap sampling and estimation How do I wr...
by ChrisCharlton
Fri Jul 09, 2021 1:37 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2719

Re: Bootstrap runmlwin

I checked this with George, and he recommended that you would probably want to change the runmlwin estimation option to be pql2 instead of the default mql1 for this.