generate_instance_roc {cases}R Documentation

Generate data sets under realistic parameter configurations

Description

Generates a (simulation) instance, a list of multiple datasets to be processed (analyzed) with process_instance. Ground truth parameters (Sensitvity & Specificity) are initially generated according to a generative model whereby multiple decision rules (with different parameter values) are derived by thresholding multiple biomarkers.

Usage

generate_instance_roc(
  nrep = 10,
  n = 100,
  prev = 0.5,
  random = FALSE,
  m = 10,
  auc = "seq(0.85, 0.95, length.out = 5)",
  rhose = 0.5,
  rhosp = 0.5,
  dist = "normal",
  e = 10,
  k = 100,
  delta = 0,
  ...,
  data = NULL,
  job = NULL
)

Arguments

nrep

integer, number of instances

n

integer, total sample size

prev

numeric, disease prevalence

random

logical, fixed prevalence (FALSE) or simple random sampling (TRUE)

m

integer, number of candidates

auc

numeric

rhose

numeric

rhosp

numeric

dist

character

e

numeric

k

numeric

delta

numeric

...

further arguments

data

ignored (for batchtools compatibility)

job

ignored (for batchtools compatibility)

Details

Utilizes same arguments as draw_data_roc unless mentioned above.

Value

a list, a single (ROC) simulation instance


[Package cases version 0.1.1 Index]