Running the Analysis
- To run a Cox Regression analysis,
from the menus choose:
Figure 1. Cox Regression main dialog box - Select Time to second arrest as the time variable.
- Select Second arrest as the status variable.
- Select Age in years as a covariate.
- Select Second arrest and
click Define Event.
Figure 2. Define Event dialog box - In the Define Event dialog, type 1 as the single value indicating a second arrest.
- Click Continue.
- Click Save in the Cox Regression dialog box.
Figure 3. Save dialog box - In the Save dialog, select Partial residuals in the Save Model Variables group.
- Click Continue.
- Click OK in the Cox Regression dialog box.
This saves the partial residuals for Age in years to the working file. Now create a scatterplot of the partial residuals by time to check the proportional hazards assumption.