Search found 1187 matches

by ChrisCharlton
Thu Sep 17, 2020 8:29 am
Forum: runmlwin user forum
Topic: Ordinal logit (non-proportional odds) - within-between
Replies: 9
Views: 170

Re: Ordinal logit (non-proportional odds) - within-between

This is a bit puzzling. If you are able to share the data could you sent a copy to George and myself (see http://bristol.ac.uk/cmm/team/ for contact details)? Otherwise I would suggest looking at data summaries to check that there is still information for all your outcome categories after removing m...
by ChrisCharlton
Tue Sep 15, 2020 11:20 am
Forum: runmlwin user forum
Topic: Ordinal logit (non-proportional odds) - within-between
Replies: 9
Views: 170

Re: Ordinal logit (non-proportional odds) - within-between

Sorry for the confusion. The previous model being used also has to be fitted with runmlwin. It will then match common parameter names and use the values associated with these as the starting values. You might therefore start with the simplest 1-level model: runmlwin LookNwPositn cons, level1( ob_id ...
by ChrisCharlton
Tue Sep 15, 2020 9:13 am
Forum: runmlwin user forum
Topic: Ordinal logit (non-proportional odds) - within-between
Replies: 9
Views: 170

Re: Ordinal logit (non-proportional odds) - within-between

I think that you have a small typo there (missing the t in "inits"). This option uses the model results from the previously run model as starting values for the model being fitted, so you would also need to run the simpler model first (and check that this fits correctly). Alternatively you could man...
by ChrisCharlton
Mon Sep 14, 2020 1:46 pm
Forum: runmlwin user forum
Topic: Ordinal logit (non-proportional odds) - within-between
Replies: 9
Views: 170

Re: Ordinal logit (non-proportional odds) - within-between

If it's a data-specific problem then you would probably be better off talking to George. General advice that we give for this kind of error would be to either try with a different base category (often the largest) or to build up to the desired model via a series of simpler ones using the initsprevio...
by ChrisCharlton
Mon Sep 14, 2020 12:10 pm
Forum: runmlwin user forum
Topic: Ordinal logit (non-proportional odds) - within-between
Replies: 9
Views: 170

Re: Ordinal logit (non-proportional odds) - within-between

Just to eliminate the possibly of a simple mistake can you confirm that you have tried running the model without the quietly prefix, as this will suppress any output from the command?
by ChrisCharlton
Fri Sep 11, 2020 1:29 pm
Forum: runmlwin user forum
Topic: using runmlwin with survey weights
Replies: 1
Views: 79

Re: using runmlwin with survey weights

Unfortunately weighting is not currently implemented for MCMC within MLwiN, so you will be unable to fit this here. See http://www.bristol.ac.uk/cmm/software/s ... ights.html for more details on using weights with MLwiN.
by ChrisCharlton
Mon Sep 07, 2020 5:57 pm
Forum: MLwiN user forum
Topic: Batch file question
Replies: 1
Views: 88

Re: Batch file question

Chapter 8 of the MCMC guide (see https://www.bristol.ac.uk/cmm/software/mlwin/download/manuals.html ) goes through an example of running a simulation study in MLwiN, so you should be able to adapt this to your needs. If you need to find the right commands to use you can either look in the "Command I...
by ChrisCharlton
Mon Aug 31, 2020 6:57 pm
Forum: R2MLwiN user forum
Topic: storing fitted values (propensity scores) from mlwinfitMCMC object
Replies: 7
Views: 402

Re: storing fitted values (propensity scores) from mlwinfitMCMC object

Thanks for letting us know what the cause turned out to be. I suspect that this may become more common in future as there was a change in the default stringsAsFactors setting in R version 4 (see https://developer.r-project.org/Blog/public/2020/02/16/stringsasfactors/ ). I will think about whether th...
by ChrisCharlton
Fri Aug 28, 2020 1:47 pm
Forum: R2MLwiN user forum
Topic: storing fitted values (propensity scores) from mlwinfitMCMC object
Replies: 7
Views: 402

Re: storing fitted values (propensity scores) from mlwinfitMCMC object

I tested this with some of the MLwiN example models and it seemed to work for me (see below). I can't see anything obviously different about the way that you have set up your model to these. Can you check that these examples work for you? > library(R2MLwiN) > > ## Read bang1 data > data(bang1, packa...
by ChrisCharlton
Thu Aug 27, 2020 3:26 pm
Forum: R2MLwiN user forum
Topic: storing fitted values (propensity scores) from mlwinfitMCMC object
Replies: 7
Views: 402

Re: storing fitted values (propensity scores) from mlwinfitMCMC object

The predict and fitted functions not working sounds like a bug, as the part where you are getting the error message should just be taking the vector of fixed part parameter coefficients and multiplying them by the corresponding data columns. Binomial MCMC is supposed to work (see line 815 in https:/...