powered by
Samples data for a prediction model with a specified AUC and prevalence.
get_sample(auc, n_samples, prevalence, min_events = 0)
Returns a data.frame.
data.frame
The Area Under the (receiver operating characteristic) Curve.
Number of samples to draw.
Prevalence or event rate of the binary outcome as a proportion (0.1 = 10%).
Minimum number of events required in the sample.
get_sample(0.7, 1000, 0.1)
Run the code above in your browser using DataLab