Learn R Programming

BayesianFROC (version 0.2.3)

AFROC: AFROC curve

Description

An AFROC curve is a plane curve characterized by two real numbers denoted by \(a,b\). In the following, \(\Phi()\) denotes the cumulative distribution function on the standard Gaussian disribution.

The so-called AFROC curve is defined by

$$ (\xi(t),\eta(t) ) =(1-e^{-t}, \Phi( b\Phi^{-1}(\exp(-t) )- a ) )$$

for all \(t >0\).

By specifying two real numbers \(a\) and \(b\), we can plot an AFROC curve.

The are under the AFROC curve, or breafly AUC, is calculated as follows, whic are used to evaluate how physicians detect lesions in radiographs.

$$ AUC = \frac{ a }{ \sqrt{1+ b^2} }. $$

Usage

AFROC(x, a = 0.14, b = 0.19, x.coordinate.also = FALSE)

Arguments

x

A real number which moves in the domain of FROC curve

a, b

One of the parameter of model which characterize AFROC curve

x.coordinate.also

Logical, whether a vector of 1-exp(-x) is included in a return value.

Value

if x.coordinate.also =TRUE, then A list, contains two vectors of x,y cooridinates for drawing curves. if x.coordinate.also =FALSE, then return is a vector, consisting of y coodinate only, (x coodinates is omitted.)

Examples

Run this code
# NOT RUN {
   x <- stats::runif(1000,0.001,100)
   a <-  AFROC(x,x.coordinate.also=TRUE)

   plot(a$x,a$y)

# }

Run the code above in your browser using DataLab