SAVE Subcommand (CSCOXREG command)
The SAVE
subcommand writes
optional model variables to the working data file.
- Specify one or more temporary variables, each followed by an optional new name in parentheses.
- The optional names must be valid variable names.
- If new names are not specified,
CSCOXREG
uses the default names. - The optional variable name must be unique. If the default name is used and it conflicts with existing variable names, then a suffix is added to the default name to make it unique.
- If a subpopulation is defined on the
DOMAIN
subcommand, thenSAVE
applies only to cases within the subpopulation. - Aggregated residuals are residuals aggregated over records with the same ID value. If ID is not specified, aggregated residuals are not available and a warning is issued if they are requested. The aggregated residual for a subject is written in the last case (or first case if it is easier) of that subject.
- If time-dependent covariates defined by
TIME PROGRAM
are included in the model, the following options are not available:MARTINGALE
,DEVIANCE
,COXSNELL
,AGGMARTINGALE
,AGGDEVIANCE
,AGGCOXSNELL
,SURVIVAL
,LCL_SURVIVAL
,UCL_SURVIVAL
,CUMHAZARD
,LCL_CUMHAZARD
, andUCL_CUMHAZARD
. A warning is issued if they are requested. - In situations when rootname is needed, the rootname can be followed by a colon and a positive integer giving the maximum number of variables with the same rootname to be saved. The first n variables are saved. The default n is 25. To specify n without a rootname, enter a colon before the number.
SCHOENFELD(rootname:n). Schoenfeld residual. A separate variable is saved for each nonredundant parameter and calculated only for noncensored observations. The default variable name is Resid_Schoenfeld.
MARTINGALE(varname). Martingale residual. The default variable name is Resid_Martingale.
DEVIANCE(varname). Deviance residual. The default variable name is Resid_Deviance.
COXSNELL(varname). Cox_Snell residual. The default variable name is Resid_CoxSnell.
SCORE(rootname:n). Score residual. A separate variable is saved for each nonredundant parameter. The default variable name is Resid_Score.
DFBETA(rootname:n). DFBETA. A separate variable is saved for each nonredundant parameter. The default variable name is Resid_DFBETA.
AGGMARTINGALE(varname). Aggregated Martingale residual. The default variable name is AggResid_Martingale.
AGGDEVIANCE(varname). Aggregated Deviance residual. The default variable name is AggResid_Deviance.
AGGCOXSNELL(varname) . Aggregated CoxSnell residual. The default variable name is AggResid_CoxSnell.
AGGSCORE(rootname:n). Aggregated Score residual. A separate variable is saved for each nonredundant parameter. The default variable name is AggResid_Score.
AGGDFBETA(rootname:n). Aggregated DFBETA. A separate variable is saved for each nonredundant parameter. The default variable name is AggResid_DFBETA.
XBETA(varname). Linear combination of reference value corrected predictors times regression coefficients. The default variable name is XBETA.
SURVIVAL(varname). Survival function. For one-time input data, it is the survival function at the observed time and predictor pattern for each record. For two-time input data, it is the survival function at endtime assuming that the predictor is fixed. The default variable name is Survival.
LCL_SURVIVAL(varname). Lower confidence level of survival function. The default variable name is LCL_Survival.
UCL_SURVIVAL(varname). Upper confidence level of survival function. The default variable name is UCL_Survival.
CUMHAZARD(varname). Cumulative hazards function. The default variable name is CumHazard.
LCL_CUMHAZARD(varname). Lower confidence level of cumulative hazards function. The default variable name is LCL_CumHazard.
UCL_CUMHAZARD(varname). Upper confidence level of cumulative hazards function. The default variable name is SECumHazard.