Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

re: Re: re: st: help for analyse survey data with complex samplingdesign


From   Dan Blanchette <dan_blanchette@unc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   re: Re: re: st: help for analyse survey data with complex samplingdesign
Date   Wed, 24 Mar 2004 16:49:25 -0500 (EST)

> the only thing i can not understand is why psu is school_id,but not distric_id or sub-distric_id?

I'll leave that up to the statitians, but in another survey software SUDAAN you can
specify more than 2 levels to correct for.  I believe what you can do in Stata to
achieve the same thing is to combine your district id variable with your sub-district_id
variable so that one variable specifies a sub-district for example if your data looked like this:

district  sub_district
 100          1
 100          2
 101          1
 101          2
 101          3

You could :

gen dis_sub = (district*10)+sub_district

which would look like this:

district  sub_district  dis_sub
 100          1          1001
 100          2          1002
 101          1          1011
 101          2          1012
 101          3          1013

Hope this helps,

Dan Blanchette
Carolina Population Center  UNC-CH





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