PR {drc} | R Documentation |
The function returns the expected or predicted response for specified dose values.
PR(object, xVec, ...)
object |
object of class |
xVec |
numeric vector of dose values. |
... |
additional arguments to be supplied to |
This function is a convenience function for easy access to predicted values.
A numeric vector of predicted values or possibly a matrix of predicted values and corresponding standard errors.
Christian Ritz after a suggestion from Andrew Kniss.
Predictions can also be obtained using predict.drc
.
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))