RIConfidenceInterval: Calculate Confidence Interval of RI

View source: R/calculate_sensitivity.R

RIConfidenceIntervalR Documentation

Calculate Confidence Interval of RI

Description

Function RIConfidenceInterval is used to calculate The confidence interval of RI (Relitave Inhibition) score for cell sensitivity to certain drug.

Usage

RIConfidenceInterval(pred, iter = 100)

Arguments

pred

A data frame. It must contain:

  • dose The concentration of drugs used for model fitting and prediction.

  • prediction The predicted response value at certain doses.

  • sd The standard deviation of predicted response value.

It can be generated by calling CalculateSens(df, pred = TRUE).

iter

A numeric value. It indicates the number of iterations for simulation.

Details

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.

Value

A named numeric vector. It contains simulated RI, two boundaries of the RI's confidence interval

Author(s)

Shuyu Zheng shuyu.zheng@helsinki.fi Jing Tang jing.tang@helsinki.fi

Examples

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)


DrugComb/TidyComb documentation built on June 22, 2022, 2:49 a.m.