Skip to content
Decision Curve Analysis
R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data
docs
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
LICENSE.md first commit. need to update/create documentation and add tests. Mar 26, 2018
NAMESPACE
NEWS.md
README.Rmd
README.md
_pkgdown.yml
appveyor.yml
codecov.yml
dca.Rproj

README.md

Travis build status AppVeyor build status Coverage status

Decision Curve Analysis (dca)

Diagnostic and prognostic models are typically evaluated with measures of accuracy that do not address clinical consequences. Decision-analytic techniques allow assessment of clinical outcomes but often require collection of additional information and may be cumbersome to apply to models that yield a continuous result. Decision curve analysis is a method for evaluating and comparing prediction models that incorporates clinical consequences, requires only the data set on which the models are tested, and can be applied to models that have either continuous or dichotomous results.

Installation

You can install dca from GitHub with:

# install.packages("devtools")
devtools::install_github("ddsjoberg/dca")

Example

This is a basic example which shows you how to solve a common problem:

library(MASS)
library(dca)
data.set <- birthwt
model = glm(low ~ age + lwt, family=binomial(link="logit"), data=data.set)
data.set$predlow = predict(model, type="response")
results = dca(data=data.set, outcome="low", predictors=c("age", "lwt"), probability=c("FALSE", "FALSE"))
#> [1] "age converted to a probability with logistic regression. Due to linearity assumption, miscalibration may occur."
#> [1] "lwt converted to a probability with logistic regression. Due to linearity assumption, miscalibration may occur."

You can’t perform that action at this time.