Learn R Programming

drc (version 1.0-3)

residuals.drc: Extracting residuals from model

Description

'residuals' extracts residuals from an object of class 'drc'.

Usage

## S3 method for class 'drc':
residuals(object, rstandard = FALSE, ...)

Arguments

object
an object of class 'drc'.
rstandard
logical. If TRUE standardised residuals are returned.
...
additional arguments.

Value

  • Raw or standardised residuals extracted from 'object'.

Examples

Run this code
model1 <- multdrc(FA)

## Displaying the residual plot (raw residuals)
plot(fitted(model1), residuals(model1))

## Using the standardised residuals
plot(fitted(model1), residuals(model1, rstandard = TRUE))

rm(model1)

Run the code above in your browser using DataLab