Hello all,
I tried searching this forum and the general internet but could not find what I was looking for. Also, if I am missing anything, I apologize in advance.
Quick information about the data and analytic plan
I have a data set that is survey data that we now have 2 years of data for (years 2016 and 2017); the analytic plan is to test for a difference between 2016 and 2017 on a continuous variable (days missed work).
The issue
the -ttest- command doesn't support -svy-, nor -pweights-.
Things I have looked into thus far
I have tried
with a followup of either -lincom- or -test-, but these commands don't account for/allow for paired samples. I have also looked into the -anova- command, but that doesn't allow for -pweights-; also the -oneway- command doesn't allow for -pweights- either. I'm currently looking into the possibility of using the -regress- command since it allows for -svy-, but am unsure how to take into account the repeated measure/paired sample design.
Any thoughts and/or help would be appreciated; thank you for your time.
Best,
Corey
I tried searching this forum and the general internet but could not find what I was looking for. Also, if I am missing anything, I apologize in advance.
Quick information about the data and analytic plan
I have a data set that is survey data that we now have 2 years of data for (years 2016 and 2017); the analytic plan is to test for a difference between 2016 and 2017 on a continuous variable (days missed work).
The issue
the -ttest- command doesn't support -svy-, nor -pweights-.
Things I have looked into thus far
I have tried
Code:
svy: mean variable_of_interest, over(year)
Any thoughts and/or help would be appreciated; thank you for your time.
Best,
Corey
Comment