[ADMB Users] glmmadmb in R
Christopher Smith
smit4155 at umn.edu
Thu Nov 10 13:01:52 PST 2011
Hello,
I am fairly new to R but am attempting to use GLMMs with neg. bin.
distribution to analyze count data. (I have successful done this using
glmer() and glm.nb() ). I am having trouble getting the function
glmmabmb() to work, even for the example provided at:
http://admb-project.org/examples/r-stuff/glmmadmb
I am getting the error,
> fit =
glmmadmb(y~Base*trt+Age+Visit,random=~Visit,group="subject",data=epil2,family="nbinom")
Error in glmmadmb(y ~ Base * trt + Age + Visit, random = ~Visit, group =
"subject", :
unused argument(s) (group = "subject")
And/or
> fit =
glmmadmb(y~Base*trt+Age+Visit,random=~Visit,data=epil2,family="nbinom")
Error in `colnames<-`(`*tmp*`, value = character(0)) :
attempt to set colnames on object with less than two dimensions
The second error is the same error I get when trying to use the function
with my data.
E.g.,
> glmmadmb(ANAM~tmin+CWD,family="nbinom",random=~Day)
Error in `colnames<-`(`*tmp*`, value = character(0)) :
attempt to set colnames on object with less than two dimensions
I am on a Mac (OS X 10.5.8) running R (2.12- 32bit). Any advice?
Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20111110/63bf8fdd/attachment.html>
More information about the Users
mailing list