ROC: ROC() function

Description Usage Details

View source: R/ROC.r

Description

Function to get a data frame containing the ROC

Usage

1
ROC(prob, true, resolution = 1000)

Details

input: prob: vector/array/data.frame...: containing the predicted probabilities from 'predict' function true: vector/array/data.frame...: indicating the true label; has to have the same length as prob resolution: int: search resolution, default set to 1000

output: The function returns an R data frame, each row containing the True Positive Rate (tpr) and False Positive Rate (fpr), according to the same threshold.


ZhengAndyTan/postLogistic documentation built on April 24, 2020, 12:03 a.m.