florianhartig / DHARMa

Diagnostics for HierArchical Regession Models
http://florianhartig.github.io/DHARMa/
201 stars 21 forks source link

No Support for GLMMPQL from MASS package #346

Closed DexterGlass closed 1 year ago

DexterGlass commented 1 year ago

No Support for GLMMPQL from MASS package

florianhartig commented 1 year ago

Perspective for this request: its seems glmmPQL does not implement any options to simulate from a fitted model, thus it is unlikely that I would integrate it in DHARMa. See also discussion in https://stat.ethz.ch/pipermail/r-sig-mixed-models/2012q4/019303.html.

Interim solution for users that want to use DHARMa with glmmPQL: take your fitted model, create a simulate function for this model structure yourself, and then use createDHARMa (see help), this will allow most DHARMa functions to be run.

See further comments on support of new packages in https://github.com/florianhartig/DHARMa/wiki/Adding-new-R-packages-to-DHARMA . The vignette has some further comments / examples on creating custom simulation functions and reading them into DHARMa

-> because it is unlikely that this can be implemented, I will close this issue. Feel free to re-open if there is an option to simulate from glmmPQL models that I have overlooked.