This repository contains two SAS macros to generate decison curve anlaysis figures in SAS.
dca.sas
Create a DCA figure for models with binary endpointsstdca.sas
Create a DCA figure for models with time-to-event endpoints
For detailed vignettes and examples of DCA in action using Stata, R and SAS, visit decisioncurveanalysis.org.
Source the DCA SAS macros with
filename dca url "https://raw.githubusercontent.com/ddsjoberg/dca.sas/main/dca.sas";
filename stdca url "https://raw.githubusercontent.com/ddsjoberg/dca.sas/main/stdca.sas";
%include dca;
%include stdca;
Call the macros with
%DCA(...)
%STDCA(...)
- Confirm the directory settings in
unit-testing/tests.sas
are correct. - Run the file
unit-testing/tests.sas
. This will...- Source the current versions of
dca.sas
andstdca.sas
. - Create and ODS report of with
PROC COMPARE
showing the expected results against the obtained results.
- Source the current versions of
- Confirm the output in the ODS report.
- 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=
argument to the%DCA()
macro. Users working with case-control data can now specify the population prevalence. -
Cleaning up functions so no additional data sets are saved to the work library.
-
Added unit testing.
- Bug fix in
%STDCA()
- Initial release.