[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: national survey with complex sample design
Hillel Alpert --
Stata should work fine, assuming your stratum and psu codes do not
overlap across years (I assume you are discussing repeated cross
sections, not panel data). If they do, you will want to redefine svy
variables by appending the year to the stratum and psu codes, e.g.
egen newstrata=group(`r(strata1)' year)
egen newpsu=group(`r(su1)' year)
svyset newpsu [pw=`r(wvar)'], strata(newstrata)
The weights should be appropriate without adjustment, I think.
On 2/8/07, Hillel Alpert <HALPERT@hsph.harvard.edu> wrote:
Could someone please advise whether and how Stata can handle national survey data with multiple years and complex survey sample design?
A single year data can readily be handled in Stata based on the weight and strata variable. Can we analyze the appended data over two or more years the same way, or is a program such as SUDAAN needed? The analysis will be of time trends, and we assume the sampling was not identical from year to year.
* For searches and help try: