rocsampling {Comp2ROC} R Documentation

ROC Sampling

Description

This function allows to calculate some statistical measures like extension and location.

Usage

rocsampling(curve1.fpr, curve1.tpr, curve2.fpr, curve2.tpr, K = 100)

Arguments

 curve1.fpr False positive rate vector with all points of the Curve 1 curve1.tpr True positive rate vector with all points of the Curve 1 curve2.fpr False positive rate vector with all points of the Curve 2 curve2.tpr True positive rate vector with all points of the Curve 2 K Number of sampling lines

Details

This function uses functions like areatriangles, curvesegslope, curvesegsloperef, diffareatriangles, linedistance and lineslope to calculate that measures. By default the number of sampling lines is 100, beacause it was proved by Braga that it was the optimal number.

Value

This funcion returns a list with the following components:

 AUC1 Total Area of Curve 1 (using triangles) AUC2 Total Area of Curve 2 (using triangles) propc1 Proportion of Curve1 propc2 Proportion of Curve2 propties Proportion of ties locc1 Location of Curve 1 locc2 Location of Curve 2 locties Location of Ties K Number of sampling lines lineslope Slopes of sampling lines diffareas Difference of area of triangles dist1 Distance of the intersection points of Curve 1 to reference point dist2 Distance of the intersection points of Curve 2 to reference point