powered by
Generate binary data
draw_data( n = 200, prev = c(0.5, 0.5), random = FALSE, m = 10, method = c("roc", "lfc", "pr"), pars = list(), ... )
generated binary data (possibly stratified for subgroups)
integer, overall sample size
numeric, vector of class prevalences (adding up to 1)
logical, random sampling (TRUE) or fixed group sample sizes
integer, number of models
character, either "roc", "lfc" (multiple subgroups) or "prob" (no subgroups)
list, containing further named parameters passed to draw_data_roc, draw_data_lfc
draw_data_roc
draw_data_lfc
further named parameters passed
draw_data()
Run the code above in your browser using DataLab