Search found 1246 matches

by ChrisCharlton
Thu Dec 10, 2020 3:20 pm
Forum: runmlwin user forum
Topic: getting credible intervals around postestimations
Replies: 8
Views: 1886

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: 1886

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: 1886

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: 1281

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)?
by ChrisCharlton
Fri Dec 04, 2020 12:23 pm
Forum: runmlwin user forum
Topic: Three-level model with two random slopes
Replies: 1
Views: 1268

Re: Three-level model with two random slopes

I asked George about this and he said the following: It is harder to fit random slopes in models with a binary response, and it is easier to hit convergence issues. There might not be sufficiently large clusters and response variation to fit the desired model. In this case it appears that the level-...
by ChrisCharlton
Thu Dec 03, 2020 1:13 pm
Forum: runmlwin user forum
Topic: Order of Predicted Residuals with Multiple Random Slopes
Replies: 2
Views: 1380

Re: Order of Predicted Residuals with Multiple Random Slopes

These should be the order that the parameters appear in the model equation. You can see this by removing the nopause option so that this is displayed prior to fitting the model. This ordering will usually match the order in which runmlwin processes the variables, so in your case as you do not have c...
by ChrisCharlton
Wed Dec 02, 2020 2:14 pm
Forum: Stat-JR user forum
Topic: Error running 2LevelUnordered Template in MCMCglmm and Rrstan
Replies: 6
Views: 2814

Re: Error running 2LevelUnordered Template in MCMCglmm and Rrstan

Adding the as.factor() call into R should be fine as an alternative to having the variable converted when loaded into R. You'd just have to make sure that the variable is suitable for this yourself (i.e. contains a set of discrete integer values). The advantage of using value labels is that the diff...
by ChrisCharlton
Mon Nov 30, 2020 4:05 pm
Forum: runmlwin user forum
Topic: Increase transmission speed from runmlwin to Stata
Replies: 4
Views: 1751

Re: Increase transmission speed from runmlwin to Stata

If you look at the runmlwin help via the following Stata command: help runmlwin You will see that there are a number of options for controlling the display under the Reporting options. You may find that you can speed up the display by changing some of these (for example omitting the fixed-effects ta...
by ChrisCharlton
Mon Nov 30, 2020 12:18 pm
Forum: runmlwin user forum
Topic: Increase transmission speed from runmlwin to Stata
Replies: 4
Views: 1751

Re: Increase transmission speed from runmlwin to Stata

You could try using the mlnscript.exe file instead of mlwin.exe when calling MLwiN, as this will avoid setting up the GUI interface each time you call the software. The downside is that you won't be able to see the model equation, etc or fitting progress as the model runs.
by ChrisCharlton
Fri Nov 27, 2020 1:20 pm
Forum: Stat-JR user forum
Topic: Error running 2LevelUnordered Template in MCMCglmm and Rrstan
Replies: 6
Views: 2814

Re: Error running 2LevelUnordered Template in MCMCglmm and Rrstan

Looking at the template history it looks like we removed a question specifying a denominator variable as none of the packages called by the template support this, however we appear to have missed removing a piece of code that assumes that this has been specified. I believe that if you remove the fol...