residuals.communityPGLMM: Residuals of communityPGLMM objects

View source: R/pglmm-utils.R

residuals.communityPGLMMR 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.


daijiang/phyr documentation built on Feb. 25, 2024, 3:01 a.m.