These functions are straightforward and rely only on the logLik, fitted, model.frame and model.matrix functions defined for glmmTMB. I feel like the R2_resid could also be implemented for these classes, but since I am not 100% sure I did not implement the corresponding methods. The glmmTMB package needs to be loaded for the functions to work, otherwise, the default methods will be used and lead to an error (e.g. model frame has the wrong dimension).
These functions are straightforward and rely only on the logLik, fitted, model.frame and model.matrix functions defined for glmmTMB. I feel like the R2_resid could also be implemented for these classes, but since I am not 100% sure I did not implement the corresponding methods. The glmmTMB package needs to be loaded for the functions to work, otherwise, the default methods will be used and lead to an error (e.g. model frame has the wrong dimension).
Hope this may prove useful...
Julien.