Between the question and your comment there are two questions here: the comparisons that go into the displayed p-values, and how to interpret the coefficients in Cox regression.
The default in R, at least, is to present all regression results (linear, Cox, generalized linear, etc.) for levels of a categorical variable with respect to its reference level. This can lead to confusion when statistical packages differ in their choices of reference level, as seen in this question. You obviously can't get a comparison of the reference level against itself. In general, you will have 1 less coefficient than you have levels of the variable.
In the semi-parametric Cox regression with results presented this way, the reference survival curve is based on reference levels of categorical variables and values of 0 for continuous variables. This reference survival curve is the logical equivalent of the intercept in linear regression. The regression coefficients (shown as coef
in the output) are calculated for changes in log-hazard around that baseline; the exp(coef)
for a variable is thus its hazard ratio relative to baseline. So the interpretation of the coefficient for non-frail
in your comment is not correct; the hazard ratio for non-frail/frail is what is shown for exp(coef)
, 0.174; the hazard for non-frail is only 17.4% of the hazard for frail.
If you are interested in testing other combinations of predictors you can define different contrasts. It can be a bit tricky to get started with this; you do have to think carefully about what comparisons you wish to make. This UCLA page provides one introduction, taking advantage of the glht()
function in the multcomp
package to minimize the amount of hand coding that might otherwise be involved. Also take a look at this Cross Validated page. Practice helps. With Cox models, the linear combinations of factor levels for other contrasts and statistical tests will be taken on the coefficients themselves, not on the hazard ratios. In Cox model coefficients add; hazard ratios multiply.
One final warning: there is a technical meaning of "frailty" in survival analysis that might lead to further confusion. See this answer for one introduction to its extended meaning as a within-group correlation of survival rather than simply an individual's health status.
coxph
is to present results for each level of a factor variable with respect to the factor's baseline level. So you never get a value for the baseline level of the factor; for a p-value there has to be something to compare against. This presentation is true in general for regressions in R. Read up on contrasts if you want to evaluate other comparisons of coefficients. $\endgroup$