residuals.communityPGLMM: Residuals of communityPGLMM objects

Description Usage Arguments Value

View source: R/pglmm-utils.R

Description

Getting different types of residuals for communityPGLMM objects.

Usage

1
2
3
4
5
6
7
## 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.


phyr documentation built on Jan. 13, 2021, 5:40 p.m.