-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DHARMa: fittedModel not in class of supported models for a glmmTMB model #414
Comments
I'm a bit surprised by the warning - could you paste a reproducible example? See also https://github.com/florianhartig/DHARMa/wiki/Asking-for-help EDIT: what I mean is can you dput your data or produce a reduced example? |
Hi, thanks for the reply! ;) (I managed to solve the problem, but I still leave the example for anyone who has the same problem in the future) Sorry for not providing a reproducible example, but here it is: For this data:
Fit this model: When checking residuals : Try to install the current (development) version: Thanks for your quick response ;) Session info: Matrix products: default locale: time zone: America/Santiago attached base packages: other attached packages: loaded via a namespace (and not attached): |
glad that this is solved. It sounds still a bit odd to me because glmmTMB is supported and should't be flagged, and also the stringAsFactors = T shouldn't really change anything if your data was coded correct in the first place. If I were you, I would definitely investigate what changed in your model between the two ways to provide the data, and please feel free to add here any insight you have. Best |
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!! ;)
The text was updated successfully, but these errors were encountered: