Announcement

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

  • Stpm2 hazard ratio for continuous variable

    Hello




    So I’ve really enjoyed using stpm2 with O Dickman and P Lambert’s tutorials




    However in their examples they all seem to use categorical variables




    I plotted a hazard ration over time using -predict- and fixing with -hrnunerator- -hrdenominator-




    However, I have been unsuccessful in plotting the hazard for my two continuous spline variables




    Code:
    Stpm2 experiencespline1 experiencespline2 comorbidity tvc (gender)



    I can not fix my hrdenominator or numerator as they are continuous variables. Of course I can fix for Comorbidity as this is categorical but I’m not sure what to do with my spline variables if I would like the plot the hazard over time for spline1 and spline2




    What would be your advice ?
Working...
X