View source: R/calculate_sensitivity.R
RIConfidenceInterval | R Documentation |
Function RIConfidenceInterval
is used to calculate The confidence
interval of RI (Relitave Inhibition) score for cell sensitivity to certain
drug.
RIConfidenceInterval(pred, iter = 100)
pred |
A data frame. It must contain:
It can be generated by calling |
iter |
A numeric value. It indicates the number of iterations for simulation. |
RIConfidenceInterval
takes the prediction results from
CalculateSens
to generate simmulated dose respons data. The
number of iteration is controlled by parameter iter
. The RIs will
be computated for all the simulated data. Finally, the function will return:
Simulated RI (Median), and two boundaries of RI's confidence interval.
A named numeric vector. It contains simulated RI, two boundaries of the RI's confidence interval
Shuyu Zheng shuyu.zheng@helsinki.fi Jing Tang jing.tang@helsinki.fi
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_with_pred <- CalculateSens(df, pred = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.