add_ROC: add_ROC

Description Usage Arguments Value Author(s)

View source: R/add_ROC.R

Description

Adds TPR and FPR columns to a data frame containing TP and a score metric (e.g. Bayes factors).

Usage

1
add_ROC(data, score_col)

Arguments

data

A data frame containing a 'TP' and score column.

score_col

A character string naming the column to be used as a score column.

Value

A data frame containing the following columns: 'True_Positive_Rate' and 'False_Positive_Rate'.

Author(s)

Alex T. Kalinka, alex.kalinka@cancer.org.uk


alex-kalinka-cruk/fgcQC documentation built on June 23, 2020, 9:05 p.m.