Hello,
I'm trying to see there's a way to directly compare means and proportions from weighted survey data (NHANES database) to means and proportions from population data (eg, data published in other studies).
For example, this study used "one-sample T-tests were used to compare continuous NHANES sample means with continuous population means reported in the EMPA-REG trial. Chi-square goodness of fit tests were used to compare categorical NHANES sample means with categorical population means reported in the EMPA-REG trial."
I'm aware of the ttest function and csgof package available in Stata, but I don't think either take into account survey weights.
Would running -test- as a post-estimation command after svy:mean be the correct way to see whether the survey mean differs from the population mean? How might I compare categorical variables between survey and population data?
Thanks in advance.
I'm trying to see there's a way to directly compare means and proportions from weighted survey data (NHANES database) to means and proportions from population data (eg, data published in other studies).
For example, this study used "one-sample T-tests were used to compare continuous NHANES sample means with continuous population means reported in the EMPA-REG trial. Chi-square goodness of fit tests were used to compare categorical NHANES sample means with categorical population means reported in the EMPA-REG trial."
I'm aware of the ttest function and csgof package available in Stata, but I don't think either take into account survey weights.
Would running -test- as a post-estimation command after svy:mean be the correct way to see whether the survey mean differs from the population mean? How might I compare categorical variables between survey and population data?
Thanks in advance.