[R-sig-ME] glmmADMB symbol error

Ben Bolker bbolker at gmail.com
Fri Jan 31 22:21:53 CET 2014


Sebastián Daza <sebastian.daza at ...> writes:

> 
> I ran an example using glmmADMB, and I got this error:
> 

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))

> 
> Error in paste0(symbol1, paste0(paste0(var, collapse = symbol2))) :
>   argument "symbol1" is missing, with no default
> 
> Any ideas?
> 

 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


> R version 3.0.2 (2013-09-25)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
> 
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> 
> attached base packages:
> [1] splines   stats     graphics  grDevices utils     datasets  methods
> base
> 
> other attached packages:
> [1] multcomp_1.3-1    TH.data_1.0-3     survival_2.37-7   mvtnorm_0.9-9997
>  data.table_1.8.10 glmmADMB_0.7.7    R2admb_0.7.10
> [8] MASS_7.3-29       foreign_0.8-59
> 
> loaded via a namespace (and not attached):
> [1] grid_3.0.2      lattice_0.20-24 Matrix_1.1-1.1  nlme_3.1-113
>  sandwich_2.3-0  tools_3.0.2     zoo_1.7-10
>



More information about the R-sig-mixed-models mailing list