Description Usage Arguments Value Examples
This function predicts the response based on input fitted log-logistic model and concentration values.
1 2 3 4 5 6 7 8 9 |
object |
an object of class 'fitIC50', generated by fitIC50 function |
newdata |
a numeric vector or data fram with one column that contains the new concentration values If omitted, the concentrations used to fit the model are used. |
se.fit |
not used, mainly for geom_smooth purpose |
level |
not used, mainly for geom_smooth purpose |
interval |
not used, mainly for geom_smooth purpose |
... |
further arguments to be passed to ggplot when using geom_smooth(). |
a vector of predicted response based on a fitted model and input concentration values.
1 2 3 4 5 6 7 8 9 10 11 12 | # create an example dose-response table
doseTab <- data.frame(viability = c(1.0, 0.95, 0.5, 0.2, 0.1),
concentration = c(0.001, 0.01, 0.1, 1, 10))
# fit a four-parameter logistic model using dr4pl package
mm <- fitIC50(viability ~ concentration, data = doseTab)
# Predict response using the input concentrations
predict(mm)
# Predict response using new concentrations
predict(mm, newdata = c(0.25, 2.5, 5, 15))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.