View source: R/calculate_sensitivity.R
CalculateSens | R Documentation |
Function CalculateSens
calculates cell line sensitivity to a drug or a
combination of drugs from dose response curve.
CalculateSens(df, pred = FALSE)
df |
A data frame. It contains two variables:
|
pred |
A logical value. If it is Note: The input data frame must be sorted by "dose" with ascending order. |
This function measures the sensitivity by calculating the Area Under Curve (AUC) according to the dose response curve. The lower bouder is chosen as lowest non-zero concentration in the dose response data.
If pred
is FALSE
, only the RI value will be return. If
pred
is set to be TRUE
, one more data frame which contains
predicted resposne values and corresponding standard deviations will be
return. It could be used to RIConfidenceInterval
for confidence
interval calculation.
Jing Tang jing.tang@helsinki.fi Shuyu Zheng shuyu.zheng@helsinki.fi
# LL.4 df <- data.frame(dose = c(0, 0.1954, 0.7812, 3.125, 12.5, 50), response = c(2.95, 3.76, 18.13, 28.69, 46.66, 58.82)) RI <- CalculateSens(df) RI_with_pred <- CalculateSens(df, pred = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.