Thanks,
Theron
________________________________
From: [email protected] on behalf of Stas Kolenikov
Sent: Mon 11/2/2009 10:19 PM
To: [email protected]
Subject: Re: st: Survey data settings
On 11/2/09, Jackson, Theron Keith (UMSL-Student) <[email protected]> wrote:
> So it is possible to have stata perform 3 different svyset commands
> in the same dataset?
No, you'd have to invent a data structure to represent your design.
Something along the lines of:
gen strata1 = county
gen strata2 = 1
replace strata2 = jail if design_type == "several jails"
egen ultimate_strata = group( strata1 strata2 )
gen PSU = person
replace PSU = cluster if design_type = "several jails"
svyset PSU [pw=sampling_weight], strata( ultimate_strata )
--
Stas Kolenikov, also found at http://stas.kolenikov.name <http://stas.kolenikov.name/>
Small print: I use this email account for mailing lists only.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
<<winmail.dat>>