residuals.barrierALK: Residuals for the barrierALK object

Description Usage Arguments

View source: R/validation.R

Description

Residuals for the barrierALK object

Usage

1
2
## S3 method for class 'barrierALK'
residuals(object, type = "deviance", ...)

Arguments

object

the barrierALK object to get the residuals of

type

the type of residual to return, either deviance, pearson or RQR,PSR

...

unused

Residuals of the barrierALK object including support for randomized quantile residuals (RQR) and probability scale residuals (PRS). Note that for the deviance and pearson residuals there is one or more residuals for each observation from each level of the CRL they pass through. The replicated response that the pearson or deviance residuals actually refer to can be retrived from the model fit along with the indices of how observations were replicated from the original data using fit$yrep and fit$repind respectively.

Randomized Quantile Residuals try to get a single residual for each observation that should be intereptable the same as residuals for a linear model.


jgbabyn/barrierALK documentation built on Dec. 20, 2021, 11:09 p.m.