resid.saemix: Extract Model Residuals

resid.saemixR Documentation

Extract Model Residuals


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


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

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



an SaemixRes or an SaemixObject object


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


By default, individual residuals are extracted from the model object

saemix documentation built on July 9, 2023, 7:43 p.m.

Related to resid.saemix in saemix...