Search found 1344 matches

by ChrisCharlton
Thu Jan 06, 2022 12:49 pm
Forum: MLwiN user forum
Topic: Import imputation Start Analysis error
Replies: 2
Views: 13372

Re: Import imputation Start Analysis error

The number of cases reported here are for the initially loaded data, rather than each of the imputed datasets (which would all have complete data). This is because these are only loaded temporarily while the imputation analysis is being run, and the original data is restored once this is complete.
by ChrisCharlton
Thu Jan 06, 2022 12:47 pm
Forum: Realcom user forum
Topic: Start Analysis error in MLwiN after retrieving REALCOM impute
Replies: 4
Views: 23824

Re: Start Analysis error in MLwiN after retrieving REALCOM impute

The "Cases in use" numbers reported in the equations window reflect the missing data in the currently loaded data. While the imputation analysis is run this is temporarily replaced with each of the imputed dataset from Realcom, however once the analysis is complete and the model results ar...
by ChrisCharlton
Mon Dec 20, 2021 8:09 pm
Forum: R2MLwiN user forum
Topic: gelman-rubin
Replies: 5
Views: 6802

Re: gelman-rubin

You can find the MCMC chains in the chains slot of the mlwinfitMCMC object returned from the runMLwiN function. An example of this would be as follows: # for runMLwiN function library(R2MLwiN) # for gelman.diag function library(coda) # load the data data(tutorial, package = "R2MLwiN") # ru...
by ChrisCharlton
Fri Nov 26, 2021 11:58 am
Forum: runmlwin user forum
Topic: Saving estimates from models (using MCMC) executed using runmlwin
Replies: 4
Views: 12600

Re: Saving estimates from models (using MCMC) executed using runmlwin

Unfortunately I don't think that there is currently a straightforward way to do this. If you look at lines 410 and 535 of ( mcmcsum.ado ) you will see that the results displayed for the summaries and detail option are stored returned in an r-class after the command is run, although as you say this i...
by ChrisCharlton
Wed Nov 24, 2021 5:31 pm
Forum: runmlwin user forum
Topic: Saving estimates from models (using MCMC) executed using runmlwin
Replies: 4
Views: 12600

Re: Saving estimates from models (using MCMC) executed using runmlwin

It looks as if the estimates replay command does not carry across the display options set when running the command, however you can re-specify them when displaying the results, for example: . use http://www.bristol.ac.uk/cmm/media/runmlwin/bang, clear . logit use age, or Iteration 0: log likelihood ...
by ChrisCharlton
Fri Nov 12, 2021 11:09 pm
Forum: MLwiN user forum
Topic: MLPowSim macro “analyse.txt” not working in MLWin
Replies: 4
Views: 11609

Re: MLPowSim macro “analyse.txt” not working in MLWin

The files that you provided ran successfully in both MLwiN versions 3.04 and 3.05 for me. You do not have to open a dataset prior to running the macro as all the values used are simulated. I set the current directory to the location of the macro files via Options>Directories, and opened the simu.txt...
by ChrisCharlton
Sun Nov 07, 2021 8:59 pm
Forum: MLwiN user forum
Topic: MLPowSim macro “analyse.txt” not working in MLWin
Replies: 4
Views: 11609

Re: MLPowSim macro “analyse.txt” not working in MLWin

I am not sure where the dashes in that syntax are coming from. Would it be possible to post the generated script, and if possible the inputs you gave to MLPowSim to create it?
by ChrisCharlton
Mon Nov 01, 2021 12:01 pm
Forum: MLwiN user forum
Topic: Problem with level 1 . variance
Replies: 2
Views: 6446

Re: Problem with level 1 . variance

If you are running a binary logit model then the variance is fixed at (π^2)/3 (≈3.29) rather than being an estimated parameter, and this is why you cannot add this to your model.

See the following FAQ for more information about variances: Partitioning variation across levels
by ChrisCharlton
Mon Nov 01, 2021 11:46 am
Forum: runmlwin user forum
Topic: Running margins on predictions from a runmlwin model fit
Replies: 5
Views: 8750

Re: Running margins on predictions from a runmlwin model fit

I showed this to George, but he wasn't able to say for sure. His advice was that unless the models ran too slowly or couldn't be fitted with mixed you should use that. If you can't do that then he suggests initially running a subsample or simplified version of your model using both mixed and your ma...
by ChrisCharlton
Fri Oct 29, 2021 10:54 am
Forum: R2MLwiN user forum
Topic: Multi Level Modelling in R
Replies: 1
Views: 8338

Re: Multi Level Modelling in R

This forum is primarily for questions related to the "R2MLwiN" R package. You might get an answer if you ask about related packages, but there are often more appropriate places for these questions.