pcrpred: Value prediction from a fitted sigmoidal model
Description
After fitting the appropriate sigmoidal model, either the raw fluorescence values can be predicted from the cycle number or vice versa.
Usage
pcrpred(object, newdata, which = c("y", "x"), ...)
Arguments
object
a 'drc' object.
newdata
a vector containing the values to estimate from.
which
either "y" (default) for prediction of the raw fluorescence or "x" for prediction of the cycle number.
...
other parameters to be passed to the predict.drc function.
Value
A vector containing the estimated values.
Details
Uses the predict.drc function from the 'drc' library for estimation, if the raw fluorescence values are to be estimated, and
the inversion function of either the llogistic or bolztmann models if the cycle number is to be estimated.
m <- pcrfit(reps, 1, 2, l5())
### which raw fluorescence value at cycle number = 17?pcrpred(m, 17)
### cycle numbers 20:25?pcrpred(m, 20:25)
### which cycle at F = 4pcrpred(m, 4, "x")