get.options.roc {ldt}R Documentation

Get Options for ROC and AUC Calculations

Description

Use this function to get the required options for search.bin, estim.bin, or s.roc functions.

Usage

get.options.roc(
  lowerThreshold = 0,
  upperThreshold = 1,
  epsilon = 1e-12,
  pessimistic = FALSE,
  costs = NULL,
  costMatrix = NULL
)

Arguments

lowerThreshold

A number representing the lower bound for calculating partial AUC.

upperThreshold

A number representing the upper bound for calculating partial AUC.

epsilon

A small number used to ignore small floating point differences when comparing scores.

pessimistic

If TRUE, sequences of equally scored instances are treated differently and a pessimistic metric is calculated (see Fawcett (2006) An introduction to ROC analysis, fig. 6).

costs

The cost of each observation. If NULL, the cost of all observations will be 1.

costMatrix

A 2x2 cost matrix in which: (1,1) is the cost of TN, (2,2) is the cost of TP, (1,2) is the cost of FP and (2,1) is the cost of FN. The first column is multiplied by the corresponding value in the costs vector (see Fawcett (2006), ROC graphs with instance-varying costs).

Details

See details of s.roc function.

Value

A list with the given options.

See Also

search.bin, estim.bin, s.roc

Examples

# See 's.roc' function.



[Package ldt version 0.5.2 Index]