Announcement

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

  • Table 1: Compare continuous variables in weighted survey

    For table one using weighted survey database.
    using tabout, how to code for a table output that includes multiple variables . In the final table, i am looking for the mean of each continious covariate along with 95% CI and p value.
    Here is the code i use.

    Code:
    tabout outcome using "results.xls" if sample ==1, replace c(mean AGE se ci) f(2 2) sum svy nwt(weight)
    The code above allows for comparing only one variable for instance (age) but i am not able to list many variables, e.g (weight and height) along with age

    1) How to update the code the way i can measure different variables, e.g on the final table to get mean, CI, SE for all variables listed and then compare them among the 2 groups of outcome
    2) how to get p values using any test for comparison .
    3) Is there a code that can adds effect size to table one using survey data

    If tabout command does not work, then would appreciate your suggestion for an alternate method that accounts for the survey structure e.g includes weight.

    Appreciate your help
    Thanks
    Last edited by ashraf abugroun; 03 Feb 2023, 13:31.
Working...
X