There are several ways of doing "t-tests" and tests for differences in proportions using survey data. The t-test is a test of difference in means between two subpopulations
That the PSUs in 2009 and 2011 were drawn independently does not affect the validity of the test in any way.
For the t-test see: http://www.ats.ucla.edu/stat/stata/faq/svyttest.htm
which you could have found by typing in Stata:
"search survey ttest" or "search survey t-test"
For comparing two proportions, there are parallel commands:
That the PSUs in 2009 and 2011 were drawn independently does not affect the validity of the test in any way.
For the t-test see: http://www.ats.ucla.edu/stat/stata/faq/svyttest.htm
which you could have found by typing in Stata:
"search survey ttest" or "search survey t-test"
For comparing two proportions, there are parallel commands:
Code:
sysuse auto, clear gen mkr = substr(make,1,2) svyset mkr [pw = turn] gen hiprice = price>8000 svy: prop hiprice, over(foreign) test _b[Foreign]=_b[Domestic] lincom _b[Foreign]-_b[Domestic] /* A slightly different approach */ svy: tab foreign hiprice, row se lincom _b[p12]-_b[p22] /* My favorite */ svy: reg hiprice foreign
Comment