DHARMa icon indicating copy to clipboard operation
DHARMa copied to clipboard

DHARMa: fittedModel not in class of supported models for a glmmTMB model

Open Franelizabethgalvez opened this issue 2 months ago • 3 comments

Hi, I was trying to correct a warning message from DHARMa: Warning message: In simulateResiduals(fittedModel = m2) :DHARMa: fittedModel not in class of supported models. Absolutely no guarantee that this will work!

For this model: m1<-glmmTMB(NPQ ~ Temp*LUZ*Tiempo + (1|ID) + (1|Intensidad), data=dp, family=beta_family(link="logit"), ziformula= ~(1|Intensidad))

Despite installing the current (development) version from this repository. (devtools::install_github(repo = "florianhartig/DHARMa", subdir = "DHARMa", dependencies = T) the warning keeps appearing and the plot does not appear, but says: Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y'

I have checked other models that used to work fine with DHARMa and now I get the same warning and error,

Unfortunately my other computer was stolen and I don't know what version of DHARMa I had, but with this version installed it should work.

This code: devtools::install_github(repo = "florianhartig/DHARMa", subdir = "DHARMa", dependencies = T, build_vignettes = T) gives me this error:Error: Vignette re-building failed. Execution halted Error: Failed to install 'DHARMa' from GitHub: Failed to install 'glmmTMB' from GitHub: ! System command 'R' failed ding ‘troubleshooting.rmd’ only runs the installation omitting: build_vignettes = T , maybe that's the problem!!

My R version: R 4.4.0 GUI 1.80 Big Sur ARM build in macOS 13.0

If anyone has any recommendations or help, I would appreciate it.

THANKS!! ;)

Franelizabethgalvez avatar Jun 03 '24 21:06 Franelizabethgalvez