Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generating a single hazard plot after stratified Cox model

    Hi everyone,

    I’ve run a Cox regression model with the following command:

    Code:
    stcox i.newtime, strata(age_group)
    I would like to generate a single plot showing the baseline hazard curves for each stratum (age_group) on the same graph. Normally, I would use:

    Code:
    stcurve, hazard
    However, due to the stratification in my model (strata(age_group)), I'm unsure how to produce a combined graph with a separate baseline hazard curve for each stratum.

    Is there a way to create this kind of plot?

    Thanks in advance

  • #2
    EDIT
    I realized that I made a mistake: of course, I wasn't referring to the baseline hazard but to the hazard function evaluated at the overall means of the covariates, one for each baseline hazard estimated by the stratified (by age_group) model.

    Comment


    • #3
      https://www.stata.com/statalist/arch.../msg00139.html

      Comment

      Working...
      X