Description Usage Arguments Examples
Displays a useful description of a decision_curve object
1 2 3 |
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). |
1 2 3 4 5 6 7 8 9 10 11 12 13 | #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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.