Products | Versions |
---|---|
Spotfire Statistica | 13.2 and higher |
1. Open Statistica example dataset e.g. myeloma.sta
2. Go to "Statistics | Advanced Models | Cox Proportional Hazards"
3. In the Cox Proportional Hazards analysis dialog, Click on "Variables" to specify survival time variable, censoring variable (Codes for complete and censored responses), Factors, and Covariates including continuous and categorical variables.
4. Click OK. In the result dialog, under "Survivor Function" tab, tick option "Cumulative hazard", and specify "Number of covariate patterns" as 1, or 2/more if you want to compare hazard functions between multiple groups of a categorical covariate.
In the case of comparing hazards of multiple groups based on a categorical variable, one can keep the rest of the covariate variable values matched between the categorical groups, and leave only the categorical variable at different grouping values. e.g. Platelet = 0, 1. The rest HGB, Age, LogWBC and Frac values are matched between Platelet group 0 and 1.
5. Click OK. Then Click on "Plot" in the dialog to display the cumulative hazard functions for the two Platelet groups 0 and 1, while other covariates have values matched between the two groups. User can examine and compare the cumulative hazards between the two Platelet groups.