PR: Expected or predicted response

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The function returns the expected or predicted response for specified dose values.

Usage

1
  PR(object, xVec, ...)

Arguments

object

object of class drc obtaining fitting a dose-response model.

xVec

numeric vector of dose values.

...

additional arguments to be supplied to predict.drc. No effect at the moment.

Details

This function is a convenience function for easy access to predicted values.

Value

A numeric vector of predicted values or possibly a matrix of predicted values and corresponding standard errors.

Author(s)

Christian Ritz after a suggestion from Andrew Kniss.

See Also

Predictions can also be obtained using predict.drc.

Examples

1
2
3
4
5
6
7
8
ryegrass.m1 <- drm(ryegrass, fct = LL.4())
PR(ryegrass.m1, c(5, 10))

ryegrass.m2 <- drm(ryegrass, fct = LL2.4())
PR(ryegrass.m2, c(5, 10))

spinach.m1 <- drm(SLOPE~DOSE, CURVE, data=spinach, fct = LL.4())
PR(spinach.m1, c(5, 10))

DoseResponse/drc documentation built on May 7, 2021, 4:55 p.m.