Description Usage Arguments Value Examples
View source: R/generate_data_roc.R
Generate binary data (ROC model)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
n |
integer, total sample size |
prev |
numeric, disease and healthy prevalence (adds up to 1) |
random |
logical, random sampling (TRUE) or fixed prevalence (FALSE) |
m |
integer, number of models |
auc |
numeric, vector of AUCs of biomarkers |
rho |
numeric, vector (length 2) of correlations between biomarkers |
e |
numeric, emulates better (worse) model selection quality with higher (lower) values of e |
k |
integer, technical parameter which adjusts grid size, can stay at default (1000) |
delta |
numeric, specify importance of sensitivity and specificity (default 0) |
modnames |
character, model names (length m) |
corrplot |
logical (default: FALSE), if TRUE do not return data but instead plot correlation matrices for final binary data |
... |
further arguments (currently unused) |
Generated binary dataset
1 2 | data <- generate_data_roc()
head(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.