get_rates: Get rates to construct ROC curve

View source: R/summary_utils.R

get_ratesR Documentation

Get rates to construct ROC curve

Description

Get false positive rates and true positive rate for ROC curves

Usage

get_rates(threshold, df_true)

Arguments

threshold

list object with threshold values rangng from 0 to 1

df_true

data.frame object for the infector probability and the true classification of transmission pairs

Details

The true data for df_true object will have 1 for a transmission pair that have occurred and 0 for a transmission pair that did not occur. This will be based by comparison with the transmission matrix.

Value

data.frame object for values of threshold, true positive rate (TPR) and false positive rate (FPR).


thednainus/HIVepisimAnalysis documentation built on Sept. 21, 2023, 7:32 a.m.