R: Expected or predicted response

PR {drc} | R Documentation

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

[Package drc version 3.0-1 Index]