3
我認爲這是一個新引入的bug。至少,它竊聽了以前的工作代碼。glmmADMB中的新bug? VarCorr無法找到rdig
library(glmmADMB)
epil2$subject <- factor(epil2$subject)
fm <- glmmadmb(y~Base*trt+Age+Visit+(Visit|subject),
data=epil2, family="nbinom")
VarCorr(fm)
產生以下錯誤:
Error in glmmADMB::VarCorr(fm) :
could not find symbol "rdig" in environment of the generic function
VarCorr
從nlme
仍然正常工作:
library(nlme)
nlme::VarCorr(fm) ##WORKS
glmmADMB::VarCorr(fm) ##Still doesn't work.
這是我的系統的系統信息是否有幫助:
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] nlme_3.1-125 glmmADMB_0.8.1 MASS_7.3-45
loaded via a namespace (and not attached):
[1] Matrix_1.2-3 plyr_1.8.3 magrittr_1.5 tools_3.2.3
[5] coda_0.18-1 Rcpp_0.12.3 stringi_1.0-1 grid_3.2.3
[9] stringr_1.0.0 R2admb_0.7.13 lattice_0.20-33
它可能與* nlme *中的'VarCorr'的更新有關[在此討論](https://github.com/lme4/lme4/issues/347)。 – aosmith