I have been succeeding on using phyloglmm and used it for several analyses. However, I noticed that since the last R update (MacOS), I can't run the glmmTMBphylo anymore.
When trying to run the examples that came with the package, I get the following message:
**_Error in namedList(nobs = nrow(data.tmb$X), respCol, grpVar, family, contrasts, : object 'sparseX' not found_**
And when running with my own data set, the below error:
glmmTMBphylo( y ~ x + (1|species) + (1|random_effect)
, data = data
, phyloZ = phyloZ
, phylonm = "species"
, doFit = TRUE
, dispformula = ~1
, REML = FALSE
, family = binomial
)
Error in phyloZ[levels(frloc[, phylonm[1]]), ] :
invalid or not-yet-implemented 'Matrix' subsetting
The interesting aspect is that I can run any model with phylo_lmm using exactly the same data set and phylogenetic tree, hence, I assume it may have something to do with the glmmTMB package vs new R version vs MacOS. Does it make sense?
Hi guys,
I have been succeeding on using phyloglmm and used it for several analyses. However, I noticed that since the last R update (MacOS), I can't run the glmmTMBphylo anymore.
When trying to run the examples that came with the package, I get the following message:
**_Error in namedList(nobs = nrow(data.tmb$X), respCol, grpVar, family, contrasts, : object 'sparseX' not found_**
And when running with my own data set, the below error:
The interesting aspect is that I can run any model with phylo_lmm using exactly the same data set and phylogenetic tree, hence, I assume it may have something to do with the glmmTMB package vs new R version vs MacOS. Does it make sense?
My sessionInfo() is:
I am sorry, but I can't provide a reproducible example for this error.
Many thanks, Nicolay