## Search found 1242 matches

Tue Mar 23, 2021 1:34 pm
Forum: runmlwin user forum
Topic: 95%Credible intervals are smaller than OR
Replies: 6
Views: 849

### Re: 95%Credible intervals are smaller than OR

The way that the credible intervals for this would be calculated is as follows: Fetch the MCMC chain for the parameter Exponentiate the values to convert to odds-ratios Sort the chain Extract the 2.5% and 97.5% quantiles I suppose that if the chain contained a few extreme values then this could resu...
Mon Mar 22, 2021 2:48 pm
Forum: runmlwin user forum
Topic: 95%Credible intervals are smaller than OR
Replies: 6
Views: 849

### Re: 95%Credible intervals are smaller than OR

That does sound a bit strange. Have you tried plotting the chains? What do the results look like it you don't convert them to odds-ratios?
Fri Mar 12, 2021 3:29 pm
Forum: runmlwin user forum
Topic: using runmlwin with survey weights
Replies: 3
Views: 1180

### Re: using runmlwin with survey weights

Sorry, there is no change here, and this is not currently in our in our future plans.
Fri Mar 12, 2021 11:39 am
Forum: runmlwin user forum
Topic: Using Stata commands lroc and lstat after runmlwin
Replies: 6
Views: 5815

### Re: Using Stata commands lroc and lstat after runmlwin

I suspect that your problem is that you have forgotten to multiple the fixed-part parameters by their associated data, so you'll want something more like: generate prediction = [FP1]cons*cons + [FP1]male*male + [FP1]agegroup2*agegroup2 + [FP1]agegroup3*agegroup3 + [FP1]agegroup4*agegroup4 + [FP1]age...
Thu Mar 11, 2021 6:21 pm
Forum: runmlwin user forum
Topic: Using Stata commands lroc and lstat after runmlwin
Replies: 6
Views: 5815

### Re: Using Stata commands lroc and lstat after runmlwin

As you have found, running predict after runmlwin will only give you the fixed-part prediction. If you want a prediction with both fixed and random effects then you will need to manually request that the higher-level residuals are returned via the residuals() option and then use these to extend the ...
Thu Mar 11, 2021 1:38 pm
Forum: MLwiN user forum
Topic: Zero-Inflated Negative Binomial?
Replies: 1
Views: 378

### Re: Zero-Inflated Negative Binomial?

You may find the following post of interest, as it explains the negative-binomial options within MLwiN:
Negative binomial multilevel model
Wed Feb 03, 2021 11:44 am
Forum: MLwiN user forum
Topic: 'invalid stoi argument' - pasting data into MLwiN
Replies: 3
Views: 589

### Re: 'invalid stoi argument' - pasting data into MLwiN

It's hard to say the exact cause without seeing the data however from the error message it may be that it is interpreting some of the lines of data as MLwiN commands. If this was the case then it might be seeing the first column as the command with subsequent columns as command arguments and the fal...
Tue Feb 02, 2021 3:09 pm
Forum: MLwiN user forum
Topic: 'invalid stoi argument' - pasting data into MLwiN
Replies: 3
Views: 589

### Re: 'invalid stoi argument' - pasting data into MLwiN

Are you pasting via the Edit->Paste menu, or the Paste button in the Names window?

Do you have column names in Excel, and if so what are they set to?

What are the possible category values that you data can take?
Tue Feb 02, 2021 12:38 pm
Forum: runmlwin user forum
Topic: Is it possible to constrain the residual variance in MLwiN?
Replies: 5
Views: 832

### Re: Is it possible to constrain the residual variance in MLwiN?

Sorry, I misunderstood that you wanted to constrain the residual error variance rather than the residual variances themselves. I had a brief discussion with George about this and he thinks that it might be possible through adding a pseudo level-1 for your s.e. measurements with a variance constraine...
Mon Feb 01, 2021 11:04 pm
Forum: runmlwin user forum
Topic: Is it possible to constrain the residual variance in MLwiN?
Replies: 5
Views: 832

### Re: Is it possible to constrain the residual variance in MLwiN?

runmlwin follows the Stata syntax for defining constraints. See this previous post from George for some details: https://www.cmm.bristol.ac.uk/forum/viewtopic.php?t=773 For another example using runmlwin and R2MLwiN see Chapter 18 of the MLwiN User Guide replication examples: runmlwin: https://www.b...