Search found 1242 matches

by ChrisCharlton
Mon Jan 25, 2021 2:13 pm
Forum: Realcom user forum
Topic: Imputation error:
Replies: 2
Views: 589

Re: Imputation error:

I'm not sure what might be causing this, although as this happens after some successful iterations have occurred it suggests that something may be going wrong with the fitting. Are you able to provide more information regarding the model specification? You could try reducing the iterations to be low...
by ChrisCharlton
Thu Jan 21, 2021 10:35 am
Forum: MLwiN user forum
Topic: Error when fitting a multinomial logit regression with panel data
Replies: 16
Views: 1750

Re: Error when fitting a multinomial logit regression with panel data

It looks like the model in the equation screenshot has failed to run (likely due to numeric issues) as it is showing no cases in use and a covariance matrix consisting only of zeros. Were you starting MCMC after the MQL1 or PQL2 model estimation? The new MCMC error message is indicating that the pri...
by ChrisCharlton
Thu Jan 21, 2021 9:39 am
Forum: MLwiN user forum
Topic: Error when fitting a multinomial logit regression with panel data
Replies: 16
Views: 1750

Re: Error when fitting a multinomial logit regression with panel data

Thanks for this. It looks like MLwiN has been confused by the language settings on your machine (notice the 5,8 rather than 5.8). If you temporarily change the decimal separator to a . it may start working.
by ChrisCharlton
Wed Jan 20, 2021 2:15 pm
Forum: MLwiN user forum
Topic: Error when fitting a multinomial logit regression with panel data
Replies: 16
Views: 1750

Re: Error when fitting a multinomial logit regression with panel data

Would it be possible for you to provide further details regarding the errors that you get when you attempt to run this via MCMC?
by ChrisCharlton
Tue Jan 12, 2021 12:15 pm
Forum: MLwiN user forum
Topic: Error when fitting a multinomial logit regression with panel data
Replies: 16
Views: 1750

Re: Error when fitting a multinomial logit regression with panel data

For multinomial models the base level needs to be an identifier indicating the unit number (e.g. 1..N). If you don't have such a column in your data this can be created using the GENE command or Generate Vector window. This will then be expanded when converting the response to multinomial.
by ChrisCharlton
Sat Dec 19, 2020 1:05 pm
Forum: MLwiN user forum
Topic: Strange predicted values
Replies: 1
Views: 490

Re: Strange predicted values

It looks like each line of your graph contains predictions for both genders, in a similar way to how the line on page 57 of the MLwiN user's guide ( https://www.bristol.ac.uk/cmm/media/software/mlwin/downloads/manuals/3-05/manual-web.pdf ) contains predictions for all of the different schools. I thi...
by ChrisCharlton
Thu Dec 10, 2020 3:20 pm
Forum: runmlwin user forum
Topic: getting credible intervals around postestimations
Replies: 8
Views: 1159

Re: getting credible intervals around postestimations

mcmcsum should work with subsets, so it may be a bug if that isn't working for you. A workaround would be to remove rows that do not correspond to the desired group before running the command, although the alternative code that you identified should be equivalent to what mcmcsum is doing for the me...
by ChrisCharlton
Thu Dec 10, 2020 12:30 pm
Forum: runmlwin user forum
Topic: getting credible intervals around postestimations
Replies: 8
Views: 1159

Re: getting credible intervals around postestimations

In your estimation command you requested that the residual chains at level-2 are stored in the file m1u.dta , so this is what you will need to open in order to calculate what you need. When running the mcmcsum on variables from the currently loaded dataset you need to specify the variables option wh...
by ChrisCharlton
Tue Dec 08, 2020 10:59 pm
Forum: runmlwin user forum
Topic: getting credible intervals around postestimations
Replies: 8
Views: 1159

Re: getting credible intervals around postestimations

I think that you should be able to do this by loading the .dta file where you have saved the parameter chains and then running the mcmcsum command on the variable that corresponds to the parameter of interest. For details on the options for this command run:

Code: Select all

help mcmcsum
from within Stata.
by ChrisCharlton
Fri Dec 04, 2020 3:21 pm
Forum: R2MLwiN user forum
Topic: Linear Spline Modelling error
Replies: 2
Views: 792

Re: Linear Spline Modelling error

Have you checked what the model equation looks like in MLwiN (this should automatically open when you run the command with the degbugmode option turned on)?