## Search found 18 matches

Wed Jun 08, 2016 3:49 pm
Forum: R2MLwiN user forum
Topic: Comparing two models
Replies: 5
Views: 5211

### Re: Comparing two models

Have you tried with

Code: Select all

``deviance()``
...?

This manual says that the command "Returns the deviance from "mlwinfitIGLS" objects", which I guess is what you get using R2MLwiN.

k.
Tue Jun 07, 2016 11:00 am
Forum: MLwiN user forum
Topic: Calculating confidence intervals around level 2 (or 3) predictions
Replies: 1
Views: 5205

### Calculating confidence intervals around level 2 (or 3) predictions

I have around 1700 subjects j nested in 50 groups k that were observed 3 times i , producing the following 3-level growth model (Fig 1): http://i.imgur.com/JG7igNc.png I would like to calculate the approximate 95% CI around the fitted values of each group, but it looks that my method produces slight...
Sat May 28, 2016 3:47 pm
Forum: MLwiN user forum
Topic: How to use first observation in growth model simulation
Replies: 3
Views: 3829

### Re: How to use first observation in growth model simulation

Hi Bill, Thank you for your kind reply, I have been reading your manual with interest. Of course you are right in that I left nothing to estimate. I had not thought about the multivariate response model, I can start with that with the group median / mean from previous years imputed to some subjects....
Thu May 26, 2016 4:07 pm
Forum: MLwiN user forum
Topic: How to use first observation in growth model simulation
Replies: 3
Views: 3829

### Re: How to use first observation in growth model simulation

So I tried to simulate this situation without success. First, I noted down the parameters from an analysis using last year's dataset. http://i.imgur.com/qwB4LfY.png Obs is the HEALTH variable I mentioned in the previous post, and we have 51 GPs at level 3 and 1754 patients at level 2. Then I removed...
Wed May 25, 2016 8:25 pm
Forum: MLwiN user forum
Topic: error in residuals for multinomial multilevel model
Replies: 6
Views: 5095

### Re: error in residuals for multinomial multilevel model

Slightly OT, if you find yourself without SPSS on a particular PC, one trick that works for me is to sort as mentioned earlier in Excel, save the file as a TAB delimited .txt, open with Notepad, copy all and paste in MLwiN. That preserves the variable names.

k.
Wed May 25, 2016 7:49 pm
Forum: MLwiN user forum
Topic: error in residuals for multinomial multilevel model
Replies: 6
Views: 5095

### Re: error in residuals for multinomial multilevel model

You have to use Data Manipulation -> Sort. If it is a 3-level model, specify 3 keys and enter the sorting columns in order from the highest to the lowest level (i.e., countries first, then grandparents, then children). Select all columns as an input and output in the same columns. If this fails, my ...
Tue May 24, 2016 9:04 pm
Forum: MLwiN user forum
Topic: How to use first observation in growth model simulation
Replies: 3
Views: 3829

### How to use first observation in growth model simulation

Suppose that the health condition of 200 patients from each of 50 GPs was observed 3 times last year. The data can be analysed as a 3-level growth model with observations nested within patients, nested within GPs (let's assume that a linear model is appropriate for this kind of data): HEALTH_ijk = B...
Thu Apr 21, 2016 9:52 am
Forum: MLwiN user forum
Topic: Covariances using orthogonal polynomials
Replies: 4
Views: 3960

### Re: Covariances using orthogonal polynomials

Hi Chris,

I've sent it now, the subject of the email is "covariances with orthogonal polynomials".

Thank you and apologies to the rest of the forum community for this semi-private exchange.

k.
Thu Apr 21, 2016 8:47 am
Forum: MLwiN user forum
Topic: Covariances using orthogonal polynomials
Replies: 4
Views: 3960

### Re: Covariances using orthogonal polynomials

Hi Chris,

Of course, could I send you the dataset via private message? I will remove all unnecessary and personal information.

Thank you and all the best,

k.
Wed Apr 20, 2016 10:39 am
Forum: R2MLwiN user forum
Topic: Issue with formula specification
Replies: 3
Views: 4578

Hi Chris,