Announcement

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

  • How to obtain overall P-value for categorical variable with >2 categories

    I am doing Cox multivariable modelling and have my final model (see below). However, two of the variables are categorical and have >2 categories ('age' and 'interact'). How can I find the overall p-value for these two variables (rather than p value for each level vs reference)?

    stcox ldh surgery i.age i.function
    HR 95% CI p
    ldh 0.50 (0.40-0.58) 0.000
    surgery 0.91 (0.77-0.98) 0.048
    age
    1
    2
    3
    0.55 (0.33-0.75)
    0.80 (0.48-1.05)
    0.88 (0.51-1.10)
    0.004
    0.09
    0.11
    function
    1
    2
    0.55 (0.33-0.88)
    1.30 (0.77-2.21)
    0.02
    0.33
    Thanks in advance

  • #2
    You can try something like
    Code:
    testparm i.age
    testparm i.function
    help testparm

    Comment


    • #3
      Thanks very much Joseph - appreciate your help!

      Comment

      Working...
      X