In a cox regression, modelled by the coxph function in the survival package, I got the following output for group only:
coef exp(coef) se(coef) z Pr(>|z|)
Group2 0.2972 1.3461 0.1714 1.734 0.083 .
However, when I add a covariate, the effect of group gets significant:
coef exp(coef) se(coef) z Pr(>|z|)
Group2 0.35135 1.42098 0.17193 1.986 0.0471 *
covariate1 0.08305 1.08659 0.01576 4.639 0.00000351 ***
This seems odd to me. In my understanding, in the second model, the effect of group is held constant for values of my covariate1. However, the effect of covariate1 points in the same direction as that of group (i.e., an increase in covariate1 increases the hazards; a change from reference group to Group2 increases the hazards, too) - in my understanding, it should have pointed in the other direction (i.e., HR<1), so that after controlling for it the effect of Group gets significant.