Binomial logisting regression with 2 level 2 variables

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
FatimaGhani
Posts: 6
Joined: Wed Oct 15, 2014 7:07 am

Binomial logisting regression with 2 level 2 variables

Post by FatimaGhani »

Hi there,

I'm trying to run the following model, but I get an error message in mlwing and in stata. I'm getting the following message: "The model did not run properly in MLwiN. Re-run the model without the nopause option to debug the model in MLwiN". Also, I was wondering if I need to have MeanPerneighcohe as level 1 in the model? The corresponding level 1 variable is Perneighcohecat (3 categories).

Many thanks,

**** MODEL 3 - M2 + nd_5 + newedcat + newincome + newocc

quietly runmlwin aawlktotguide cons sex age45to49 age50to54 age55to59 age60to65 nd_richer nd_middle nd_poorer nd_poorest neweduDip neweduCer neweduNone newoccWhite newoccBlue newoccHome newoccReti newoccMiss newincome2 newincome3 newincome4 newincome5 newincomeMiss, level2(cd2006: cons MeanPerneighcohe) level1(id:) discrete(distribution(binomial) link(logit) denom(cons) pql2) nopause
runmlwin aawlktotguide cons sex age45to49 age50to54 age55to59 age60to65 nd_richer nd_middle nd_poorer nd_poorest neweduDip neweduCer neweduNone newoccWhite newoccBlue newoccHome newoccReti newoccMiss newincome2 newincome3 newincome4 newincome5 newincomeMiss, level2(cd2006: cons MeanPerneighcohe) level1(id:) discrete(distribution(binomial) link(logit) denom(cons)) mcmc(orthogonal) initsprevious nopause nogroup
runmlwin, noheader noretable or
estimates store Model3
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Binomial logisting regression with 2 level 2 variables

Post by ChrisCharlton »

In your example you are running two models (one with IGLS and one with MCMC). Which of these are you getting the error with? If the IGLS model runs without error can you post the output (without the quietly prefix) for this model? If this model doesn't run either then I would suggest simplifying your model until you find one that works, which might indicate which variables are being problematic.

MLwiN does not allow the specification of random variables at level one for discrete models.
Post Reply