simulate_roc.Rd
Simulate data from the null and alternative distributions to estimate ROC curves for a collection of methods.
simulate_roc(
apply_methods,
gen_null_data,
gen_alt_data,
nruns = 100,
core_count = parallel::detectCores() - 1,
seed = NULL
)
a function that returns a data.frame with columns "method", "tstat" and "twosided"
a function that generate data under the null model
a function that generate data under the alternative model
number of simulated data from the null/alternative model
number of cores used in parallel computing
seed for random simulation
a list of result
A data frame used to plot ROC curves with columns: method, whether a two sided test, false positive rate (FPR), and true positive rate (TPR)
A data frame containing raw output from null and alternative models with columns: method, statistics value, whether a two sided test, and the type of hypothesis
symstem elapsed time for generating ROC data