simulateAUC {petersenlab} | R Documentation |
Simulate Area Under the ROC Curve (AUC).
Description
Simulate data with a specified area under the receiver operating characteristic curve—i.e., the AUC of an ROC curve.
Usage
simulateAUC(auc, n)
Arguments
auc |
The area under the receiver operating characteristic (ROC) curve. |
n |
The number of observations to simulate. |
Details
Simulates data with a specified area under the receiver operating characteristic curve—i.e., the AUC of an ROC curve.
Value
Dataframe with two columns:
-
x
is the predictor variable. -
y
is the dichotomous criterion variable.
See Also
https://stats.stackexchange.com/questions/422926/generate-synthetic-data-given-auc/424213
Other simulation:
complement()
,
simulateIndirectEffect()
Examples
simulateAUC(.60, 50000)
simulateAUC(.70, 50000)
simulateAUC(.80, 50000)
simulateAUC(.90, 50000)
simulateAUC(.95, 50000)
simulateAUC(.99, 50000)
[Package petersenlab version 1.0.0 Index]