History & Overview Annual Report President's Pages Center News Community Affairs
Make a Gift Cycle for Survival Fred's Team Rock & Run on the River Yankees Universe Fund Thomas Blake Sr. Memorial Research Fund Donating Blood & Platelets Volunteering Thrift Shop Park Avenue Potluck CELEBRATIONS
Press Releases In the News Information for Journalists News@MSKCC
Manhattan New Jersey Long Island Westchester
Working at Memorial Sloan-Kettering Work Sites College Recruitment About Nursing Job Fairs & Career Days IS Careers Job Search & Apply Online

Below is code to implement decision curve analysis (Med Decis Making 2006 Nov-Dec;26(6):565-74) in Stata (version 8 or higher) and R.

Stata code

(download Stata Code for Decision Curve Analysis.zip)

The Stata files to implement decision curve analysis for a binary endpoint are dca.ado and dca.hlp. The Stata files to implement decision curve analysis for a survival-time outcome are stdca.ado and stdca.hlp. The "ado" files contain the actual code; the "hlp" files contain instructions. Save these files to the "ado" folder on your C drive, restart Stata (or type "discard" at the command line), and then type "help dca" or "help stdca" on the command line to see how to use the command.

R code

(download R Code for Decision Curve Analysis.zip)

The R files to implement decision curve analysis for a binary endpoint are dca.R and instructions for dca in R.doc. The R files to implement decision curve analysis for a survival-time outcome are stdca.R and instructions for stdca in R.doc. The "R" file contains the actual code; the "doc" file contains instructions. Save the "R" file onto your computer, and then source the R code to use the function.

Bookmark and SharePrintEmail This Page