HAZARD.MAC This macro produces datasets containing values for plotting the cumulative hazard and kernel hazard functions. The macro must be run once for each strata/group. %MACRO HAZARD(TIME=, DELTA=, GROUP=, GROUPNUM=, DATA=_LAST_, BAND=); TIME: specify the variable that contains follow-up time/ survival time of interest. DELTA: coded 0 or 1 where 0 indicates a censored value GROUP: Name of variable that holds the strata identifiers GROUPNUM: Indicates the group for which hazard and cum hazard estimates are to be calcultated DATA: Name of dataset, default is the last one used BAND: Bandwidth for calculating the kernel estimator of the hazard Output of macro is two datasets, CUMH? and HAZ? where the ? is replaced by the value specified for groupnum. If you have 3 strata numbered 1, 2, and 3, run the macro 3 times to produce the datasets CUMH1, HAZ1, CUMH2, HAZ2, CUMH3, HAZ3.