## Search found 427 matches

Mon Oct 22, 2018 3:44 pm
Forum: runmlwin user forum
Topic: negative binomial example for runmlwin
Replies: 2
Views: 1995

### Re: negative binomial example for runmlwin

Dear Ralph, We don't currently have any worked examples, however, here is how you fit the mean dispersion or NB2 version of the negative binomial model in MLwiN for the simple case of one-level data where we have one predictor . runmlwin y cons x, /// level1(id:) /// discrete(distribution(nbinomial)...
Tue Oct 09, 2018 4:02 pm
Forum: runmlwin user forum
Topic: Interpretation of the between-country variance as a function of 'x', random slope
Replies: 2
Views: 1849

### Re: Interpretation of the between-country variance as a function of 'x', random slope

Negative covariance means that the variance function will be decreasing when x = 0. It will however, increase again eventually at higher values of x and this is what you see.

Similarly, you will see fanning in at x = 0, but will see fanning out again at higher values of x.
Thu Sep 27, 2018 4:48 pm
Forum: runmlwin user forum
Topic: Random Slope Model Country Prediction Lines for the Slope
Replies: 2
Views: 1940

### Re: Random Slope Model Country Prediction Lines for the Slope

In your plot, look a the y-axis (where x = 0). You should seed that the higher intercepts generally have negative slopes. The lower intercepts generally have positive slopes. This is what we expect given a negative covariance. The stronger the correlation, the more pronounced the pattern. The lines ...
Fri May 18, 2018 1:08 pm
Forum: runmlwin user forum
Topic: runmlwin in the growth model
Replies: 1
Views: 1021

### Re: runmlwin in the growth model

Dear auctor21,

A conventional three-level linear growth model for a continuous outcome...

. runmlwin outcome cons time, ///
level3(group: cons time) ///
level2(individual: cons time) ///
level1(occasion: cons) ///
nopause

Best wishes

George
Tue May 15, 2018 12:27 pm
Forum: runmlwin user forum
Topic: A question about CCMM with runmlwin
Replies: 2
Views: 1491

### Re: A question about CCMM with runmlwin

Dear Auctor, The level-1 ID is not actually used by MLwiN, but conceptually the occasion number is the relevant variable to put at the level-1 ID. Note, you will also need to declare the model to be cross-classified, specify the multiple membership strucutre and weights, and fit the model by MCMC. S...
Wed Feb 28, 2018 12:12 pm
Forum: runmlwin user forum
Topic: interaction plots
Replies: 1
Views: 941

### Re: interaction plots

Dear Gina, Yes you are right, -margins- is not allowed after runmlwin. You will have to generate your plot from first principles. Essentially mucking around with the regression coefficients and some fictitious co-variate data. So something like this where x1 and x2 are your continuous predictors and...
Mon Feb 26, 2018 5:10 pm
Forum: MLwiN user forum
Topic: 3 level data structure and sample size
Replies: 3
Views: 2023

### Re: 3 level data structure and sample size

Hi Shane, Probably worth pointing out that these are general multilevel modelling queries that would apply equally in any multilevel software or commands rather than being any specific to MLwiN. So do look in multilevel modelling textbooks at the sections about sample sizes at different levels. 1. Y...
Tue Feb 20, 2018 10:39 am
Forum: runmlwin user forum
Topic: repeated time series
Replies: 1
Views: 876

### Re: repeated time series

Hi,

Sounds like you might have repeated cross-sectional data. For example individuals within years within countries. This is a three-level data structure and you can analyse this with a three-level model using runmlwin.

Best wishes

George
Sun Feb 11, 2018 8:18 pm
Forum: runmlwin user forum
Topic: Stata 15 runmlwin problem
Replies: 3
Views: 1590

### Re: Stata 15 runmlwin problem

Dear All,

. update all

. ssc install runmlwin, replace

Best wishes

George
Tue Feb 06, 2018 1:17 pm
Forum: runmlwin user forum
Topic: Prior variance matrix is not positive definite
Replies: 1
Views: 1215

### Re: Prior variance matrix is not positive definite

Dear Gina, Sounds like your IGLS MQL/PQL model which you have fit to obtain starting values for then going on to fit the model by MCMC has given the following estimates for your level-2 random effects variance-covariance matrix var(cons) 0.3062052 cov(cons,sc_neigh) 0 var(sc_neigh) 0 The IGLS MQL/PQ...