negative binomial example for runmlwin

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
rbrecken
Posts: 2
Joined: Thu Jul 02, 2015 4:06 pm

negative binomial example for runmlwin

Post 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
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: negative binomial example for runmlwin

Post 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
rbrecken
Posts: 2
Joined: Thu Jul 02, 2015 4:06 pm

Re: negative binomial example for runmlwin

Post by rbrecken »

Dear George:
Thank you so much for your reply. Much appreciated.
All the best,
Ralph
Post Reply