Learn R Programming

petersenlab (version 1.1.0)

simulateAUC: 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)

Value

Dataframe with two columns:

  • x is the predictor variable.

  • y is the dichotomous criterion variable.

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.

See Also

Examples

Run this code
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