powered by
Simulate data with a specified area under the receiver operating characteristic curve—i.e., the AUC of an ROC curve.
simulateAUC(auc, n)
Dataframe with two columns:
x is the predictor variable.
x
y is the dichotomous criterion variable.
y
The area under the receiver operating characteristic (ROC) curve.
The number of observations to simulate.
Simulates data with a specified area under the receiver operating characteristic curve—i.e., the AUC of an ROC curve.
https://stats.stackexchange.com/questions/422926/generate-synthetic-data-given-auc/424213
Other simulation: complement(), simulateIndirectEffect()
complement()
simulateIndirectEffect()
simulateAUC(.60, 50000) simulateAUC(.70, 50000) simulateAUC(.80, 50000) simulateAUC(.90, 50000) simulateAUC(.95, 50000) simulateAUC(.99, 50000)
Run the code above in your browser using DataLab