Learn R Programming

drc (version 1.6-1)

residuals.drc: Extracting residuals from model

Description

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

Usage

## S3 method for class 'drc':
residuals(object, type = c("working", "standardised"), ...)

Arguments

object
an object of class 'drc'.
type
character string. The type of residual to be returned.
...
additional arguments.

Value

  • Raw or standardised residuals extracted from 'object'.

Examples

Run this code
## Fitting a four-parameter log-logistic model
ryegrass.m1 <- drm(rootl ~conc, data = ryegrass, fct = LL.4())

## Displaying the residual plot (raw residuals)
plot(fitted(ryegrass.m1), residuals(ryegrass.m1))

## Using the standardised residuals
plot(fitted(ryegrass.m1), residuals(ryegrass.m1, type = "standard"))

Run the code above in your browser using DataLab