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

Description Usage Arguments Value

View source: R/core.R

Description

Calculates mROC from the vector of predicted risks Takes in a vector of probabilities and returns mROC values (TPs,FPs in an object of class mROC)

Usage

1
mROC(p, ordered = F)

Arguments

p

A numberic 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 vectos: 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


Shoodood/mROC documentation built on Feb. 5, 2021, 3:21 p.m.