Skip to content

glmmADMB symbol error

2 messages · Sebastián Daza, Ben Bolker

1 day later
#
Sebasti?n Daza <sebastian.daza at ...> writes:
library(glmmADMB)
data(bacteria,package="MASS")
bacteria$present <- as.numeric(bacteria$y)-1
  (bfit <-  glmmadmb(present ~ trt + I(week > 2), random = ~ 1 | ID,
    family = "binomial", data = bacteria))
Hmm...  I don't get this problem.  I also don't see "symbol1"
anywhere in the R code for glmmADMB or R2admb, which is making
me think that a function in some other package is masking something ...

  My sessionInfo has

R Under development (unstable) (2014-01-02 r64625)
Platform: i686-pc-linux-gnu (32-bit)

[locale information snipped]

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] glmmADMB_0.7.7 R2admb_0.7.10  MASS_7.3-29   

loaded via a namespace (and not attached):
[1] compiler_3.1.0  grid_3.1.0      lattice_0.20-24 Matrix_1.1-1   
[5] nlme_3.1-113    tools_3.1.0    

other attached packages:
[1] glmmADMB_0.7.7 R2admb_0.7.10  MASS_7.3-29   

loaded via a namespace (and not attached):
[1] grid_3.1.0      lattice_0.20-24 Matrix_1.1-1    nlme_3.1-113   
[5] tools_3.1.0

   I am using a development version of R, but I doubt that's
the problem ... could you try from a clean session (i.e. without
any unnecessary packages) and see what happens?

Hmm: after loading multcomp, foreign, and data.table I get sessionInfo()
more similar to yours, but things still work:
not quite the same versions of all the packages, but still ...

other attached packages:
[1] data.table_1.8.10 foreign_0.8-57    multcomp_1.3-1    TH.data_1.0-2    
[5] survival_2.37-4   mvtnorm_0.9-9996  glmmADMB_0.7.7    R2admb_0.7.10    
[9] MASS_7.3-29      

loaded via a namespace (and not attached):
[1] compiler_3.1.0  grid_3.1.0      lattice_0.20-24 Matrix_1.1-1   
[5] nlme_3.1-113    sandwich_2.3-0  tools_3.1.0     zoo_1.7-10

  Can you try traceback() and see where the error is actually happening?

  Ben Bolker