Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PR

Expected or predicted response


Description

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

Usage

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

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

drc

Analysis of Dose-Response Curves

v3.0-1
GPL-2 | file LICENCE
Authors
Christian Ritz <ritz@bioassay.dk>, Jens C. Strebig <streibig@bioassay.dk>
Initial release
2016-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.