Announcement

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

  • Post-hoc for Wald test

    Hi, I would like to ask for confirmation on whether my logic/codes for
    post-hoc
    Wald tests are correct.

    Suppose I have a variable for age group with 3 categories and a variable for sex with 2 categories. I want to do an interaction term test for both categories. I believe I can use this

    Code:
    testparm i.age#i.sex
    which also stands for:

    Code:
    test 1.age#1.sex 1.age#2.sex 2.age#1.sex 2.age#3.sex 3.age#1.sex
    I would also like to compare the significance for sex for each age group. I am currently using:

    Code:
    test 1.age#1.sex 2.age#1.sex
    test 1.age#1.sex 3.age#1.sex
    test 2.age#1.sex 3.age#1.sex
    Is this technically sound and correct? I have searched in this forum for similar issues but haven't found a similar case to mine. Thanks in advance.
    Last edited by Gilbert Lazarus; 08 Apr 2023, 10:01.
Working...
X