Learn R Programming

fake (version 1.4.0)

Rates: 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)

Value

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

Arguments

observed

vector of binary outcomes.

predicted

vector of predicted scores.

thr

threshold for predicted scores.