Page 1 of 1

negative binomial example for runmlwin

Posted: Mon Oct 22, 2018 2:29 pm
by rbrecken
Hi. I am a long time user of MLwiN and runmlwin.
Although I think I have the latest versions of both, I am not able to find a worked example setting up a negative binomial count model in runmlwin. I have printed out and reviewed the useful chapter-by-chapter manual that provides worked through examples translating mlwin examples to runmlwin.
Any pointers welcome.
Ralph Taylor
Criminal Justice
Temple University
Fellow, ASC

Re: negative binomial example for runmlwin

Posted: Mon Oct 22, 2018 3:44 pm
by GeorgeLeckie
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) link(log)) ///
nopause

It is not possible to fit the constant dispersion or NB1 version of the model.

Best wishes

George

Re: negative binomial example for runmlwin

Posted: Sat Oct 27, 2018 4:45 pm
by rbrecken
Dear George:
Thank you so much for your reply. Much appreciated.
All the best,
Ralph