<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Chris, <div>I get the same error as you when I run </div><div>fit = glmmadmb(y~Base*trt+Age+Visit,random=~Visit,group="subject",data=epil2,family="nbinom")</div><div>but this works</div><div>fit = glmmadmb(y~Base*trt+Age+Visit+(Visit|subject),data=epil2,family="nbinom")</div><div><br></div><div>So I guess you have the newer version of glmmADMB (like me) and I guess it requires this syntax.</div><div>cheers,</div><div>Mollie</div><div><br><div>
Mollie Brooks<br>Ph.D. Candidate<br>NSF IGERT Fellow<br>Biology Department<br>University of Florida<br><a href="mailto:mbrooks@ufl.edu">mbrooks@ufl.edu</a><br>http://people.biology.ufl.edu/mbrooks<br><br><br><br>
</div>
<br><div><div>On 10 Nov 2011, at 4:01 PM, Christopher Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<div bgcolor="#ffffff" text="#000000">
<font face="Times New Roman, Times, serif">Hello,<br>
<br>
</font>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:
<a class="moz-txt-link-freetext" href="http://admb-project.org/examples/r-stuff/glmmadmb">http://admb-project.org/examples/r-stuff/glmmadmb</a><br>
<br>
I am getting the error, <br>
<br>
> fit =
glmmadmb(y~Base*trt+Age+Visit,random=~Visit,group="subject",data=epil2,family="nbinom")<br>
Error in glmmadmb(y ~ Base * trt + Age + Visit, random = ~Visit, group
= "subject", : <br>
unused argument(s) (group = "subject")<br>
<br>
<br>
And/or<br>
<br>
> fit =
glmmadmb(y~Base*trt+Age+Visit,random=~Visit,data=epil2,family="nbinom")<br>
Error in `colnames<-`(`*tmp*`, value = character(0)) : <br>
attempt to set colnames on object with less than two dimensions<br>
<br>
The second error is the same error I get when trying to use the
function with my data. <br>
<br>
E.g., <br>
<br>
> glmmadmb(ANAM~tmin+CWD,family="nbinom",random=~Day)<br>
Error in `colnames<-`(`*tmp*`, value = character(0)) : <br>
attempt to set colnames on object with less than two dimensions<br>
<br>
<br>
I am on a Mac (OS X 10.5.8) running R (2.12- 32bit). Any advice? <br>
<br>
Thanks,<br>
Chris<br>
</div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>http://lists.admb-project.org/mailman/listinfo/users<br></blockquote></div><br></div></body></html>