Problems fitting PQL2 logit model
Posted: Tue Jan 28, 2014 5:15 pm
Hi runmlwin forum.
I am having problems fitting a simple 3-level logit model using the PQL2 estimator.
I first fit the model M1 using MQL1:
I then try to run the following model M2 with PQL2:
Which gives me the following error message:
runmlwin has encountered an error importing the model results from MLwiN. Check that the model has run properly in ML
> wiN.
r(198);
I exclude nopause to see what's in MLWin, and find the following: So Q1: What does this mean?
I tried dropping the weights and using MCMC. This works fine. The syntax of M3 uses starting values from M1
I also tried dropping the household level (M4 and M5):
This also worked fine.
So Q2 is: I need to account for the household level because it was a household clustered survey. But I have no real interest in variation at this level. Is there anyway of accounting for cluster without making it a level in MLWIN? I.e. estimating robust standard errors as is possible with svyset in stata?
Many thanks,
Lisa
I am having problems fitting a simple 3-level logit model using the PQL2 estimator.
I first fit the model M1 using MQL1:
Code: Select all
runmlwin noharm cons, ///
level3(msoa01: cons) ///
level2(hhid: cons) ///
level1(subjectid: , weightvar(pw1)) ///
discrete(distribution(binomial) link(logit) denominator(cons)) ///
maxiterations(200) nopause
Code: Select all
runmlwin noharm cons, ///
level3(msoa01: cons) ///
level2(hhid: cons) ///
level1(subjectid: ) ///
discrete(distribution(binomial) link(logit) denominator(cons) pql2) ///
maxiterations(100) initsprevious nopause
runmlwin has encountered an error importing the model results from MLwiN. Check that the model has run properly in ML
> wiN.
r(198);
I exclude nopause to see what's in MLWin, and find the following: So Q1: What does this mean?
I tried dropping the weights and using MCMC. This works fine. The syntax of M3 uses starting values from M1
Code: Select all
runmlwin noharm cons, ///
level3(msoa01: cons) ///
level2(hhid: cons) ///
level1(subjectid: ) ///
discrete(distribution(binomial) link(logit) denominator(cons)) ///
mcmc(burnin(1000) chain(10000)) initsprevious nopause nogroup
Code: Select all
runmlwin noharm cons, ///
level2(msoa01: cons) ///
level1(subjectid: , weightvar(pw1)) ///
discrete(distribution(binomial) link(logit) denominator(cons)) ///
maxiterations(100) nopause
runmlwin noharm cons, ///
level2(msoa01: cons) ///
level1(subjectid: , weightvar(pw1)) ///
discrete(distribution(binomial) link(logit) denominator(cons) pql2) ///
maxiterations(200) initsprevious nopause
So Q2 is: I need to account for the household level because it was a household clustered survey. But I have no real interest in variation at this level. Is there anyway of accounting for cluster without making it a level in MLWIN? I.e. estimating robust standard errors as is possible with svyset in stata?
Many thanks,
Lisa