NOTE: Beginning with SAS/STAT® 14.1 and in SAS 9.4 TS1M3, the functionality of this macro has been updated and added to the LIFETEST Procedure. For details, see the LIFETEST documentation.
Version | Update Notes |
1.0 | Initial version of %CIF macro (March 2012) |
Call the %CIF macro using the following syntax:
%CIF (list of macro parameters separated by commas);
The following parameters may be listed within parentheses in any order, separated by commas. Only the DATA=, OUT=, TIME=, and STATUS= parameters are required; the other parameters are optional. The parameters are defined as follows:
DATA=SAS-data-set specifies the SAS data set that contains the data to be analyzed. OUT=SAS-data-set specifies an output data set with estimates of cumulative incidence functions and confidence limits. If you omit the OUT=parameter, the output data set is created with a default name of cifEstimate. TIME=variable specifies the name of the failure-time variable. STATUS=variable specifies the name of the numeric variable whose values indicate whether an observation corresponds to the event of interest, the competing events, or is censored. EVENT=(list) specifies values of the STATUS= variable that identify failure times from a cause of interest. Use blanks to separate multiple values. The default value is 1. CENSORED=(list) specifies values of the STATUS= variable that identify censored observations. Use blanks to separate multiple values. The default value is 0. GROUP=variable specifies the name of the variable that defines the groups for comparison. STRATA=variable specifies the name of the variable that defines the strata for a stratified test; see Gray (1988). ALPHA=value specifies the level of the pointwise confidence intervals. The value must be between 0 and 1. The default is 0.05. PHO=value specifies the power of the weight function in the test; see Gray (1988). The value must be between 0 and 1. The default is 0. SE=value specifies a method for computing the standard error of the cumulative incidence function. Specify SE=1 for the counting process method, and specify SE=2 for the delta method. The default is SE=1. TITLE=value specifies the first title for the cumulative incidence function plot. Do not use quotation marks. TITLE2=value specifies the second title for the cumulative incidence function plot. Do not use quotation marks. OPTIONS=keyword specifies one or more of the following keywords separated by blanks: • NOPLOT suppresses plots of the cumulative incidence functions. • PLOTCL plots the pointwise confidence limits for cumulative incidence functions. • NOCIFEST suppresses the table that contains the estimated cumulative incidence functions. • NOTEST suppresses the test for equality for cumulative incidence functions among groups.
For competing risks data, the cumulative incidence function is the cumulative probability of failure from a specific cause over time.
When you compare treatment effects on the cumulative incidence function, the null hypothesis H_0 is that the cumulative incidence functions are identical across treatment groups. The %CIF macro implements a test due to Gray (1988). See Lin, So, and Johnston (2012) for more discussion.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Date Modified: | 2015-09-17 09:39:58 |
Date Created: | 2012-03-13 11:17:18 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | SAS/STAT | Linux | ||
IRIX | ||||
HP-UX IPF | ||||
HP-UX | ||||
AIX | ||||
ABI+ for Intel Architecture | ||||
64-bit Enabled Solaris | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled AIX | ||||
Windows Vista for x64 | ||||
Windows Vista | ||||
Windows Millennium Edition (Me) | ||||
Windows 7 Ultimate x64 | ||||
Windows 7 Ultimate 32 bit | ||||
Windows 7 Professional x64 | ||||
Windows 7 Professional 32 bit | ||||
Windows 7 Home Premium x64 | ||||
Windows 7 Home Premium 32 bit | ||||
Windows 7 Enterprise x64 | ||||
Windows 7 Enterprise 32 bit | ||||
Microsoft Windows XP Professional | ||||
Microsoft Windows Server 2008 for x64 | ||||
Microsoft Windows Server 2008 | ||||
Microsoft Windows Server 2003 for x64 | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 95/98 | ||||
OS/2 | ||||
Microsoft® Windows® for x64 | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
OpenVMS VAX | ||||
z/OS | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
OpenVMS on HP Integrity | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |