Learn R Programming

drc (version 1.2-0)

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
model1 <- multdrc(ryegrass)

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

## Using the standardised residuals
plot(fitted(model1), residuals(model1, type = "standard"))

rm(model1)

Run the code above in your browser using DataLab