COXREG
Cox proportional hazards regression with categorical, stratified and time-dependent covariates.
Syntax
Section titled “Syntax”COXREG time [WITH covariates] /STATUS=var(values) [/METHOD=ENTER covariates] [/STRATA=var] [/CATEGORICAL=vars] [/CONTRAST(var)=INDICATOR[(ref)]|SIMPLE[(ref)]|DEVIATION[(ref)]] [/TIES=BRESLOW|EFRON] [/PRINT=CI(95) BASELINE] [/CRITERIA=ITERATE(20)] [/PHTEST] [/PLOT=SURVIVAL HAZARD] [/SAVE=SURVIVAL HAZARD XBETA PRESID].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CATEGORICAL, /CONTRAST, /CRITERIA, /METHOD, /MISSING, /OUTFILE, /PATTERN, /PHTEST, /PLOT, /PRINT, /SAVE, /STATUS, /STRATA, /TIES |
| Menu | Analyze ▸ Survival |
| Slot: Time | 1–1 variable(s); levels: scale; types: numeric |
| Slot: Status | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric |
| Slot: Covariates | 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Strata | 0–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- TIES: BRESLOW (default, as SPSS) or EFRON
- PHTEST: Grambsch-Therneau test of proportional hazards from Schoenfeld residuals (OrcStat extension)
- SAVE: SURVIVAL and HAZARD at each case’s time and covariates, XBETA (mean-centred linear predictor), PRESID (Schoenfeld residuals, one variable per covariate)
Examples
Section titled “Examples”COXREG months /STATUS=relapse(1) /METHOD=ENTER age treatment /CATEGORICAL=treatment /PRINT=CI(95) /PHTEST.TIME PROGRAM T_COV_ = age * LN(T_).COXREG months /STATUS=relapse(1) /METHOD=ENTER age T_COV_.COXREG time WITH age dose /STATUS=died(1) /METHOD=FSTEP(LR) age dose /SAVE=DFBETA.- Interactions are written a*b or a BY b. Stepwise methods are not available yet.
- Time-dependent covariates come from TIME PROGRAM and are re-evaluated at every event time.
- Stepwise selection: /METHOD=FSTEP|BSTEP(COND|LR|WALD) with PIN and POUT in /CRITERIA, including time-dependent covariates (TIME PROGRAM).
- /SAVE=DFBETA saves the change in each coefficient when a case is left out (score residuals × covariance).
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.