mROC: Calculates mROC from the vector of predicted risks Takes in a...

View source: R/mROC.R

mROCR Documentation

Calculates mROC from the vector of predicted risks Takes in a vector of probabilities and returns mROC values (True positives, False Positives in an object of class mROC)

Description

Calculates mROC from the vector of predicted risks Takes in a vector of probabilities and returns mROC values (True positives, False Positives in an object of class mROC)

Usage

mROC(p, ordered = FALSE)

Arguments

p

A numeric vector of probabilities.

ordered

Optional, if the vector p is ordered from small to large (if not the function will do it; TRUE is to facilitate fast computations).

Value

This function returns an object of class mROC. It has three vectors: thresholds on predicted risks (which is the ordered vector of input probabilities), false positive rates (FPs), and true positive rates (TPs). You can directly call the plot function on this object to draw the mROC


predtools documentation built on June 7, 2023, 5:58 p.m.