Learn R Programming

saemix (version 3.3)

resid.saemix: Extract Model Residuals

Description

residuals is a generic function which extracts model residuals from objects returned by modelling functions. The abbreviated form resid is an alias for residuals

Usage

# S3 method for SaemixRes
resid(object, type = c("ires", "wres", "npde", "pd", "iwres", "icwres"), ...)

# S3 method for SaemixObject resid(object, type = c("ires", "wres", "npde", "pd", "iwres", "icwres"), ...)

Value

By default, individual residuals are extracted from the model object

Arguments

object

an SaemixRes or an SaemixObject object

type

string determining which residuals are extracted. Possible values are: "ires" (individual residuals, default), "wres" (weighted population residuals), "npde" (normalised prediction distribution errors), "pd" (prediction discrepancies), "iwres" (individual weighted residuals) and "icwres" (conditional individual weighted residuals). See user guide for details.

...

further arguments to be passed to or from other methods