residuals.communityPGLMM function

Residuals of communityPGLMM objects

Residuals of communityPGLMM objects

Getting different types of residuals for communityPGLMM objects.

## 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.

Returns

A vector of residuals.