auc {GRridge} | R Documentation |
Computes Area-under-the-ROC-curve
auc(rocout)
rocout |
Matrix with two rows |
Operates on the output of roc
. The rows of the input matrix represent the False Positive Rates (FPR) and
corresponding True Positive Rates (TPR) at fixed thresholds.
Numeric. Interpolated Area-under-the-ROC-curve.
Mark A. van de Wiel
ROC-curves: roc
. creating multiple partitions: CreatePartition
.
Examples: grridge
.
# Load data objects data(dataFarkas) ## In this example, we provide one partition only ## see "CreatePartition" for examples in creating multiple partitions firstPartition <- CreatePartition(CpGannFarkas) # grFarkas <- grridge(datcenFarkas,respFarkas, firstPartition,monotone=FALSE) ## Prediction of the grridge model to the training samples #cutoffs <- rev(seq(0,1,by=0.1)) #fakenew <- datcenFarkas #yhat <- predict.grridge(grFarkas,fakenew) #rocridgeF <- roc(probs=as.numeric(yhat[,2]),true=respFarkas[1:30],cutoffs=cutoffs) #auc(rocridgeF)