summary.decision_curve {rmda} | R Documentation |
Displays a useful description of a decision_curve object
Description
Displays a useful description of a decision_curve object
Usage
## S3 method for class '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
#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")
[Package rmda version 1.6 Index]