data("pma.taylor2004")
# Read results from 'run_sensitivity' (using the default arguments)
res_sens <- readRDS(system.file('extdata/res_sens_taylor.rds',
package = 'rnmamod'))
# Calculate the robustness index
robust <- robustness_index(sens = res_sens,
threshold = 0.17)
# The names of the interventions in the order they appear in the dataset
interv_names <- c("placebo", "inositol")
# Create the barplot for the comparison 'inositol versus placebo'
kld_barplot(robust = robust,
compar = c("inositol", "placebo"),
drug_names = interv_names)
Run the code above in your browser using DataLab