# How to interpret the output of Cox regression with categorical nominal variables in SPSS?

When I enter a nominal categorical variable as independent variable into the Cox regression procedure, SPSS gives cloaked results. It just reports something like the following:

               P            OR
Variable       0.000        --
Variable(1)    0.000        21.004
Variable(2)    0.005        5.074
Variable(3)    0.450        1.120
Variable(4)    0.000        15.620
Variable(5)    0.000        0.001


I don't know which variable level is the reference for the comparisons, and which variable level is being compared with which other variable level.

1. It seems that Variable is the reference, and Variable(#) is being compared to it. Am I correct? Please let me know what is being compared with what, when the variable is nominal. Is SPSS incorrectly tries to calculate the mean for the nominal variable, and use it as a reference? Or does it compare each level to one of the levels manually entered by the user (eg, the last variable level, or a particular variable given)?

2. Why Variable (which apparently is the reference variable level) has a P value despite not having Beta and OR? Is it an intercept? What is it?

3. How to distinguish that what is exactly the Variable(2) or Variable(5)? I need to know the exact names of the variable levels that were originally labeled or entered as strings. SPSS refuses to use the original variable levels' names. It does the same either when I am entering a numeric variable as categorical, or when I enter a string variable as the independent variable. And note that my numeric variable is properly labeled.

SPSS help and Google were not of much help in this regard.

The SPSS code is:

COXREG Time
/STATUS=Failed(1)
/PATTERN BY Variable
/CONTRAST (Variable)=Indicator
/METHOD=ENTER Variable
/PLOT SURVIVAL HAZARDS LML OMS
/PRINT=CI(95)
/CRITERIA=PIN(.05) POUT(.10) ITERATE(20).


And this is the output:

             B       SE     Wald    df   Sig.   Exp(B)

Variable                    52.892  5   .000
Variable(1)  2.053  .417    24.229  1   .000    7.795
Variable(2)  .757   .379    3.986   1   .046    2.132
Variable(3)  2.547  .475    28.712  1   .000    12.771
Variable(4)  .169   .373    .205    1   .650    1.184
Variable(5) -.456   .374    1.486   1   .223    .634


This table might be a key to understanding the above table:

Categorical Variable Codings a
Frequency    (1) (2) (3) (4) (5)
Variable b  1=level1    10          1   0   0   0   0
2=level2    18          0   1   0   0   0
3=level3    8           0   0   1   0   0
4=level4    9           0   0   0   1   0
5=level5    11          0   0   0   0   1
6=level6    12          0   0   0   0   0
a Category variable: Variable
b Indicator Parameter Coding

• Can you paste your actual output into the question? – gung - Reinstate Monica Oct 3 '14 at 19:05
• Does the model output include a constant? It's possible that all levels are included because the constant is being omitted. – Emiller Oct 3 '14 at 19:59
• gung, it is now added. – Vic Oct 3 '14 at 21:00
• emiller in the output, no constant is reported. But I pasted the SPSS code and its output too. But anyway I already do need to include all the variable levels. Why shouldn't I do that? Could you please elaborate? – Vic Oct 3 '14 at 21:03
• I think the PATTERN BY might be the culprit. Try something like: coxreg variables = Time with Variable /status Failed(1) /categorical = Variable. – Emiller Oct 4 '14 at 1:35