Rates: True and False Positive Rates

View source: R/goodness_of_fit.R

RatesR Documentation

True and False Positive Rates

Description

Computes the True and False Positive Rates by comparing the true (observed) and predicted status. The predicted status is obtained by applying a threshold on the predicted scores.

Usage

Rates(observed, predicted, thr)

Arguments

observed

vector of binary outcomes.

predicted

vector of predicted scores.

thr

threshold for predicted scores.

Value

True and False Positive Rates (TPR and FPR, respectively).


fake documentation built on April 14, 2023, 12:37 a.m.

Related to Rates in fake...