Skip to content
Prev 65826 / 398513 Next

generalized negative binomial

On Sat, 12 Mar 2005, Erin M Simpson wrote:

            
Your subject line is not clear to me: Stata appears to fit a negative 
binomial model, the point being that it is not a glm as fitted by glm.nb. 
(So when Stata says

      `gnbreg is a generalized negative binomial regression'

it is `regression' not `negative binomial' that is being generalized.)
Just write down the log-likelihood (I am not sure what the free parameters 
here are: are beta and gamma vectors?), and call optim() to maximize it.