Learn R Programming

DecisionCurve (version 1.4)

summary.decision_curve: Displays a useful description of a decision_curve object

Description

Displays a useful description of a decision_curve object

Usage

# S3 method for decision_curve
summary(object, ..., measure = c("sNB", "NB", "TPR",
  "FPR", "TNR", "FNR"), nround = 3)

Arguments

object

decision_curve object to summarise

...

other arguments ignored (for compatibility with generic)

measure

name of summary measure to print out. For standardized net benefit: "sNB" (default), net benefit: "NB", true positive rate: "TPR", false positive rate: "FPR".

nround

number of decimal places to round (default 3).

Examples

Run this code
# NOT RUN {
#helper function

#load simulated data
data(dcaData)

full.model <- decision_curve(Cancer~Age + Female + Smokes + Marker1 + Marker2,
data = dcaData,
thresholds = seq(0, .4, by = .05),
bootstraps = 25)

summary(full.model) #outputs standardized net benefit by default

summary(full.model, nround = 2, measure = "TPR")

# }

Run the code above in your browser using DataLab