Description Usage Arguments Value Examples
Use the dr4pl package to perform IC50 curve fitting. Can be directly used for geom_smooth() in ggplot2.
1 |
formula |
formula for the curve fitting. |
data |
a data frame that contains the concentration values and the normalized viability values or percent inhibition values. |
weights |
not used, mainly for geom_smooth() purpose |
logDose |
a numeric value specifying the base of log transformation for concentration, if the concentration is log transformed. The default value is NULL (not log transformed). |
... |
further arguments to be passed to dr4pl function |
fitIC50 returns an object of class 'fitIC50', which is a list containing the following components:
model |
the input dose-response table |
formula |
the formula used for the model fitting |
parm_fit |
the fitted parameters for a 4-paramater logistic model |
logDose |
a numeric value specifying the base of log transformation for concentration, if the concentration is log transformed. The default value is NULL (not log transformed). |
1 2 3 4 5 6 | # 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
fitIC50(viability ~ concentration, data = doseTab)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.