roc_obj: Generate roc_obj object that is handy for summarizing...

Description Usage Arguments Value

View source: R/roc.R

Description

Generate roc_obj object that is handy for summarizing discrimination statistics and for passing to other functions for presentation

Usage

1
roc_obj(x, y, xlab = "", units = "", ci = FALSE, rnd_thresh = 0, rnd_discr = 2)

Arguments

x

Numeric or ordinal vector of predictors

y

Factor, numeric, or character vector of responses

units

Character specifying units for formatting Youden's threshold

ci

Logical indicating whether bootstrapped confidence intervals should be calculated

rnd_thresh

Rounding precision (in decimal places) for Youden's threshold (default is 0)

rnd_discr

Rounding precision for discrimination statistics (sensitivity and specificity; default is 2)

Value

A roc_obj object


trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.