Empty higher levels

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
anneneri
Posts: 3
Joined: Fri Mar 22, 2013 5:34 pm

Empty higher levels

Post by anneneri »

I am using runmlwin to run a three-level model (family-> child-> repeated observation per child) with a binary outcome. I am able to run a two-level model (without accounting for the clustering by family), but when I run the three-level model I am getting the following error "Only MQL1 can be specified if there are empty higher levels". It won't let me specify PQL2 and I cannot seem to figure out the reason for this error. I know I don't have any missing values for FamilyID. I would really appreciate it if you can give me some advice.

Thanks in advance
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Empty higher levels

Post by GeorgeLeckie »

Hi Anna,

Please will you post your runmlwin syntax and output so that we can better see what the problem may be

Many thanks

George
anneneri
Posts: 3
Joined: Fri Mar 22, 2013 5:34 pm

Re: Empty higher levels

Post by anneneri »

Hi,

This is the syntax I am using...

2-level:
runmlwin asthma cons, level2(personid) level1(time) discrete (distribution(binomial) link(logit) denominator(cons) pql2)

3-level :
runmlwin asthma cons, level3(familyid) level2(personid) level1(time) discrete (distribution(binomial) link(logit) denominator(cons) pql2)

Both of give the same error "Only MQL1 can be specified if there are empty higher levels". They run fine when I use MQL.
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Empty higher levels

Post by GeorgeLeckie »

Hi Anna,

You need to explicitly declare which variables enter the random part of the model at level-2 and level-3

You want a three-level random intercept model and so you want to only enter the intercept variable (cons) as random at each level.

So you should write

Code: Select all

* 2-level:
. runmlwin asthma cons, level2(personid: cons) level1(time) discrete (distribution(binomial) link(logit) denominator(cons) pql2)

* 3-level :
. runmlwin asthma cons, level3(familyid: cons) level2(personid: cons) level1(time) discrete (distribution(binomial) link(logit) denominator(cons) pql2)
Note that you do not make any variables random at level-1 because there is no level-1 residual error in logistic regression

Bets wishes

George
anneneri
Posts: 3
Joined: Fri Mar 22, 2013 5:34 pm

Re: Empty higher levels

Post by anneneri »

Hi George,

Thanks you very much for your reply. I hope you don't mind, but I have two more questions.

1. I tried your syntax for the 3-level model (see below), but I am getting an error ("Work Matrix is too small (v_b_1.build())" ) in a popup window in MLwiN. Do you know why this might be happening?
runmlwin asthma cons, level3(familyid: cons) level2(personid: cons) level1(time) discrete (distribution(binomial) link(logit) denominator(cons) pql2)

2. Since I am only using these parameter estimates to refit the model by MCMC, could I just use the parameter estimates from PQL1?

Thank you,
Anne
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Empty higher levels

Post by GeorgeLeckie »

Hi Anne,

In terms of your second question, yes you can just use the PQL1 estimates as suitable starting values for fitting the model using MCMC.

Actually, I tend to simply use the MQL1 estimates.

Best wishes

George
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Empty higher levels

Post by GeorgeLeckie »

Hi Anne,

In terms of your first question. The cause of that error message is not obvious.

Please will you email me the shortest do-file and data set which replicates this error message

Best wishes

George
Post Reply