[R] generalized negative binomial

From: Erin M Simpson <esimpson_at_fas.harvard.edu>
Date: Sun 13 Mar 2005 - 10:25:19 EST

I am looking for code that allows for a more flexible negative binomial model (similar to Stata's "gnbreg").

In particular, I am looking to be able to model the ancillary shape parameter in terms of a series of covariates. So if,

        y[i] ~ poisson(mu[i])

        mu[i] = exp(x[i]beta + u[i])

        exp(u[i]) ~ Gamma(1/alpha, alpha)

I am looking to parameterize alpha as exp(z[i]gamma).

If you are familiar with a package that allows for this, I'd appreciate the heads up. Similar information that allows for first differences with such a model is also appreciated.

Thanks.

Erin



Erin M Simpson
esimpson@fas.harvard.edu
http://people.fas.harvard.edu/~esimpson

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Mar 14 10:34:17 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:47 EST