Learn R Programming

Comp2ROC (version 1.0)

rocsampling: 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

Value

  • This funcion returns a list with the following components:
  • AUC1Total Area of Curve 1 (using triangles)
  • AUC2Total Area of Curve 2 (using triangles)
  • propc1Proportion of Curve1
  • propc2Proportion of Curve2
  • proptiesProportion of ties
  • locc1Location of Curve 1
  • locc2Location of Curve 2
  • loctiesLocation of Ties
  • KNumber of sampling lines
  • lineslopeSlopes of sampling lines
  • diffareasDifference of area of triangles
  • dist1Distance of the intersection points of Curve 1 to reference point
  • dist2Distance of the intersection points of Curve 2 to reference point

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.

See Also

areatriangles curvesegslope curvesegsloperef diffareatriangles linedistance lineslope