residuals.communityPGLMM {phyr} | R Documentation |
Residuals of communityPGLMM objects
Description
Getting different types of residuals for communityPGLMM objects.
Usage
## S3 method for class 'communityPGLMM'
residuals(
object,
type = if (object$family %in% c("binomial", "poisson")) "deviance" else "response",
scaled = FALSE,
...
)
Arguments
object |
A fitted model with class communityPGLMM. |
type |
Type of residuals, currently only "response" for gaussian pglmm; "deviance" (default) and "response" for binomial and poisson pglmm. |
scaled |
Scale residuals by residual standard deviation for gaussian pglmm. |
... |
Additional arguments, ignored for method compatibility. |
Value
A vector of residuals.
[Package phyr version 1.1.0 Index]