Search found 1168 matches

by ChrisCharlton
Fri Jul 03, 2020 2:05 pm
Forum: runmlwin user forum
Topic: Issues running 2-level nominal response model
Replies: 1
Views: 9

Re: Issues running 2-level nominal response model

I think that the error is caused by the way you have generated the idnew variable, where it restarts numbering within each higher-level unit. Normally this doesn't matter as MLwiN doesn't actually use the lowest level ID variables for anything, however in multinomial models the data is expanded and ...
by ChrisCharlton
Mon Jun 29, 2020 10:10 am
Forum: R2MLwiN user forum
Topic: syntax necessary to constrain a random parameter to zero
Replies: 1
Views: 23

Re: syntax necessary to constrain a random parameter to zero

If you were using the MLwiN GUI you could constrain the parameter value to zero by removing the term from the model (clicking it in the equations window and choosing "Yes" to the remove from model question). The equivalent of this in R2MLwiN is to use the clre option, you can find examples of this i...
by ChrisCharlton
Mon Jun 22, 2020 11:32 am
Forum: runmlwin user forum
Topic: Specifying multiple chains in runmlwin
Replies: 1
Views: 40

Re: Specifying multiple chains in runmlwin

Some years ago (2012) I wrote the attached prefix command to allow this. This works as follows: . use http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial, clear // Calculate IGLS estimates . runmlwin normexam cons standlrt, level2(school: cons) level1(student: cons) nopause MLwiN 3.05 multilevel mo...
by ChrisCharlton
Mon Jun 22, 2020 11:01 am
Forum: runmlwin user forum
Topic: Problem with weights in the latest version of runmlwin
Replies: 7
Views: 6838

Re: Problem with weights in the latest version of runmlwin

Unfortunately the MCMC algorithm implemented in MLwiN does not support weighting, so if you want to fit these models you will need to stick to using (R)IGLS estimation. Note also that weighting for discrete models in MLwiN has not been thoroughly tested (see http://www.bristol.ac.uk/cmm/software/sup...
by ChrisCharlton
Mon Jun 22, 2020 10:57 am
Forum: MLwiN user forum
Topic: Issue: Negative Binomial Models with Offsets.
Replies: 1
Views: 66

Re: Issue: Negative Binomial Models with Offsets.

MLwiN v2.22 is a rather old version (December 2010), so we would need to know that the same problem happens for you in the most recent version before we can look into this. If the same model was working before however then it's likely that something external has changed. Are you using the same data ...
by ChrisCharlton
Tue Jun 16, 2020 3:56 pm
Forum: MLwiN user forum
Topic: Testing Nested Models
Replies: 1
Views: 160

Re: Testing Nested Models

Please see the following post for a previous answer to this:
https://www.cmm.bristol.ac.uk/forum/vie ... php?p=5631
by ChrisCharlton
Tue Jun 16, 2020 2:12 pm
Forum: MLwiN user forum
Topic: Estimates multivariate regression analysis using RIGLS
Replies: 1
Views: 155

Re: Estimates multivariate regression analysis using RIGLS

The (352 of 369 cases in uses) indicates that 17 rows of the expanded data contain missing values, whereas the (120 of 123) cases indicates that 3 of the participants are entirely missing. Having the same coefficients and SE's could be a coincidence, you could increase the display precision via the ...
by ChrisCharlton
Tue Jun 16, 2020 12:08 pm
Forum: MLwiN user forum
Topic: question about install
Replies: 1
Views: 147

Re: question about install

Would you be able to provide more information about the content of the error messages that you are seeing?
by ChrisCharlton
Tue Jun 16, 2020 12:07 pm
Forum: runmlwin user forum
Topic: saving statistics from mcmcsum
Replies: 1
Views: 133

Re: saving statistics from mcmcsum

estimates store ( https://www.stata.com/help.cgi?estimates_store ) saves the current model results from a returned eclass (see https://www.stata.com/help.cgi?ereturn ), however mcmcsum returns the results as an rclass (see https://www.stata.com/help.cgi?return ). What you are actually saving are th...
by ChrisCharlton
Thu May 21, 2020 1:53 pm
Forum: runmlwin user forum
Topic: Comparing variance estimates from two MCMC models
Replies: 5
Views: 866

Re: Comparing variance estimates from two MCMC models

Unfortunately we don't have any examples, however George gave the following outline of how this would work: You would need to set up a bootstrapping routine in Stata, which would call a program that you define. In this you would fit each model and store the quantities of interest as scalars. The boo...