residuals.drc {drc}R Documentation

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'.

Note

The 'standardised' residuals are available for least squares estimation with or without Box-Cox transformation or variance as a power of the mean.

Author(s)

Christian Ritz

Examples


## 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"))


[Package drc version 1.6-1 Index]