Calculate Decision Curve Data
dca(...)# S3 method for coxph
dca(
...,
model.names = do::get_names(...),
test.harm = 0,
new.data = NULL,
times = "median"
)
# S3 method for cph
dca(
...,
model.names = do::get_names(...),
test.harm = 0,
new.data = NULL,
times = "median"
)
# S3 method for glm
dca(..., model.names = do::get_names(...), test.harm = 0, new.data = NULL)
# S3 method for lrm
dca(..., model.names = do::get_names(...), test.harm = 0, new.data = NULL)
one or more results of logistic or cox regression
names for models
test harm, default is 0
new data for validation
times for cox regresion, default is 'median'
a dataframe contains thresholds, TPR: true positive rate, FPR: false positive rate, NB: net benefit, model: model names.
Vickers, A. J., & Elkin, E. B. (2006). Decision Curve Analysis: A Novel Method for Evaluating Prediction Models. Medical Decision Making, 26(6), 565<U+2013>574. https://doi.org/10.1177/0272989X06295361