Skip to content

Problem specifying Gamma distribution in lme4/glmer

1 message · Matthew Giovanni

#
Hey, everyone.  Thanks so much for your input.  I apologize for not
attaching an example data file before.  I'm attaching an example csv file,
used with the following R script:

veg=read.csv("Litter.csv",header=TRUE)
veg$YPM=factor(veg$YPM)
veg$YEAR=factor(veg$YEAR)
hist(veg$LITTER)
qqnorm(veg$LITTER)
qqline(veg$LITTER)
litter=glmer(LITTER~YPM+MNG+(1|PROV/SITE)+(1|YEAR),data=veg,family=Gamma(link=log))
summary(litter)

I also noticed that Stephani posted an inquiry describing the same problem (
https://stat.ethz.ch/pipermail/r-sig-mixed-models/2008q4/001684.html), where
the Gamma specification works with glm, and the lognormal specification
works with glmer, but the Gamma with glmer produces the same error for the
both of us:

Error in asMethod(object) : matrix is not symmetric [1,2]

Stephani, have you had any luck understanding this error?  I have not been
able to figure it out.  Thanks again for your input, everyone.  Best
regards,

Matt
___________________________________
Matt Giovanni, Ph.D.
NSERC Visiting Research Fellow
Canadian Wildlife Service
2365 Albert St., Room 300
Regina, SK S4P 4K1
306-780-6121 work
402-617-3764 mobile
http://sites.google.com/site/matthewgiovanni/
On Sun, Mar 21, 2010 at 7:25 PM, Ben Bolker <bolker at ufl.edu> wrote: