Functions to perform Decision Curve Analysis (DCA) using Stata.
The functions within the dca package include detailed help files (access the help files with help dca, or help stdca after installation). For detailed vignettes and examples of DCA in action using Stata, R and SAS, visit decisioncurveanalysis.org. Use the following command to install the collection of DCA functions in Stata.
net install dca, from("https://raw.github.com/ddsjoberg/dca.stata/master/") replace
- Confirm the working directory set in
unit-testing/tests.do
is correct. - Run the file
unit-testing/tests.do
. This will...- Source the current versions of
dca.do
andstdca.do
. - Run each of the unit testing files located in the
unit-testing/tests
folder.
- Source the current versions of
- Confirm the results in the Stata console window.
- The net interventions avoided figures have new defaults (breaking change):
- The figure will now include the treat all and treat none reference lines.
- The nper now defaults to one
-
Added
prevalence()
option to thedca
function. Users working with case-control data can now specify the population prevalence. -
Addded a unit testing infrastructure for the package.
- Initial release.