Announcement

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

  • Generating Table 1 for patient characteristics table for continuous variables using 'test' function

    Hi, I am using the following code to generate Table 1 for patient characteristic distribution.


    svy, subpop(inc_copd): mean AGE, over (ment1_copd)

    test [AGE]0=[AGE]1


    inc_copd is my sample population of patients with COPD

    ment1_copd is the group of patients who have mental disorders and are part of inc_COPD.

    this is the error that I am getting -
    Click image for larger version

Name:	Screenshot 2023-03-21 at 11.20.49 AM.png
Views:	1
Size:	116.9 KB
ID:	1706436



  • #2
    Code:
    svy, subpop(inc_copd): mean AGE, over (ment1_copd) coeflegend
    to see how you can refer to the coefficients when using the test command.

    Comment

    Working...
    X