# load example data
cat_all_data <- load_clean(import= "no", file.cat = "SI_cat_all", cat_all= "yes",
format.cat = "wide")$cat_all_data
# \donttest{
# run function comparing p-values only (takes only a few seconds)
cat_all_fn (comp.pvals = "yes")$cat_all_diff_calc_rep_ft
# run function comparing distribution of binomial variables only
# to speed example up limit to 12 2-arm trials with 20 variables
# (takes close to 5 secs)
cat_all_data <- cat_all_data [1:41, c(1:8,10:11,13:15)]
cat_all_fn (binom = "yes", two_levels = "yes", del.disparate = "yes",
excl.level = "yes", seed = 10)$cat_all_graph
# to import an excel spreadsheet (modify using local path,
# file and sheet name, range, and format):
# get path for example files
path <- system.file("extdata", "reappraised_examples.xlsx", package = "reappraised",
mustWork = TRUE)
# delete file name from path
path <- sub("/[^/]+$", "", path)
# load data
cat_all_data <- load_clean(import= "yes", cat_all = "yes", dir = path,
file.name.cat = "reappraised_examples.xlsx", sheet.name.cat = "SI_cat_all",
range.name.cat = "A:N", format.cat = "wide")$cat_all_data# }
Run the code above in your browser using DataLab