[R] negative binomial lmer

Bill.Venables at csiro.au Bill.Venables at csiro.au
Thu Nov 15 13:54:25 CET 2007

lmer will work with negative binomial models, provided you specify an
explicit, scalar value for theta.

Rather than family = negative.binomial(theta = x) try something like
family=negative.binomial(theta = 2.5) (or whatever you wish specify as

Bill Venables.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of H. Skaug
Sent: Thursday, 15 November 2007 8:16 PM
To: r-help at r-project.org
Subject: [R] negative binomial lmer

If lmer() does not do it, you can try:


It handles negative binomial responce (but you may have to remove data
entries involving NA manually).



>I am running an lmer which works fine with family=poisson
>But it is overdispersed. I tried using family=quasipoisson but get no P
>values. This didnt worry me too much as i think my data is closer to
>negative binomial but i cant find any examples of negative binomial
lmer. I
>tried using the family=negative.binomial(theta=x,link=log) but got an
>message from R saying the function famiily=negative.binomial wasnt
>Can anyone suggest how to go about setting up the lmer with negative
>binomial distribution?

	[[alternative HTML version deleted]]

R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list