Learn R Programming

gratia (version 0.11.1)

quantile_residuals: Randomised residuals

Description

Randomised residuals

Usage

quantile_residuals(model, type = c("pit", "quantile"), seed = NULL, ...)

# S3 method for gam quantile_residuals(model, type = c("pit", "quantile"), seed = NULL, ...)

# S3 method for glm quantile_residuals(model, type = c("pit", "quantile"), seed = NULL, ...)

Arguments

model

a fitted model object.

type

character; which type of randomised residual to return

seed

integer; the random seed to use when generating randomised residuals. Can be missing, in which case the current state residuals are computed using the current state of the random number generator.

...

arguments passed to other methods.