Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: national survey with complex sample design


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: national survey with complex sample design
Date   Thu, 8 Feb 2007 13:22:09 -0500

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.
 svyset
 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 <[email protected]> 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.

Hillel Alpert
[email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index