computeAUC | R Documentation |
Returns the AUC (Area Under the drug response Curve) given concentration and viability as input, normalized by the concentration range of the experiment. The area returned is the response (1-Viablility) area, i.e. area under the curve when the response curve is plotted on a log10 concentration scale, with high AUC implying high sensitivity to the drug. The function can calculate both the area under a fitted Hill Curve to the data, and a trapz numeric integral of the actual data provided. Alternatively, the parameters of a Hill Slope returned by logLogisticRegression can be passed in if they already known.
computeAUC(
concentration,
viability,
Hill_fit,
conc_as_log = FALSE,
viability_as_pct = TRUE,
trunc = TRUE,
area.type = c("Fitted", "Actual"),
verbose = TRUE
)
concentration |
|
viability |
|
Hill_fit |
|
conc_as_log |
|
viability_as_pct |
|
trunc |
|
area.type |
Should the area be computed using the actual data ("Actual"), or a fitted curve ("Fitted") |
verbose |
|
Numeric AUC value
dose <- c(0.0025,0.008,0.025,0.08,0.25,0.8,2.53,8)
viability <- c(108.67,111,102.16,100.27,90,87,74,57)
computeAUC(dose, viability)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.