dca: Calculate Decision Curve Data

Description Usage Arguments Value References

View source: R/dca.R

Description

Calculate Decision Curve Data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dca(...)

## S3 method for class 'coxph'
dca(
  ...,
  model.names = do::get_names(...),
  test.harm = 0,
  new.data = NULL,
  times = "median"
)

## S3 method for class 'cph'
dca(
  ...,
  model.names = do::get_names(...),
  test.harm = 0,
  new.data = NULL,
  times = "median"
)

## S3 method for class 'glm'
dca(..., model.names = do::get_names(...), test.harm = 0, new.data = NULL)

## S3 method for class 'lrm'
dca(..., model.names = do::get_names(...), test.harm = 0, new.data = NULL)

Arguments

...

one or more results of logistic or cox regression

model.names

names for models

test.harm

test harm, default is 0

new.data

new data for validation

times

times for cox regresion, default is 'median'

Value

a dataframe contains thresholds, TPR: true positive rate, FPR: false positive rate, NB: net benefit, model: model names.

References

Vickers, A. J., & Elkin, E. B. (2006). Decision Curve Analysis: A Novel Method for Evaluating Prediction Models. Medical Decision Making, 26(6), 565–574. https://doi.org/10.1177/0272989X06295361


ggDCA documentation built on Sept. 6, 2020, 5:06 p.m.

Related to dca in ggDCA...