Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Steve Samuels <sjsamuels@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: variance calculation, stratified sample |
Date | Tue, 21 Sep 2010 11:17:49 -0400 |
-- -svyset- followed by -svy: prop- or -svy: tabulate- will do it. The -help- for "survey" will guide you to those commands. With simple random sampling within strata, no hypothesis testing, the commands would be: svyset _n [pw =wh], strata(stratum_var) fpc(Nh) svy: prop x // or svy: tab x //better CIs with very small or large proportions Note that "Stata" is not spelled "STATA" Regards, Steve Steven J. Samuels sjsamuels@gmail.com 18 Cantine's Island Saugerties NY 12477 USA Voice: 845-246-0774 Fax: 206-202-4783 On Tue, Sep 21, 2010 at 10:05 AM, Klas Rydenstam <klas.rydenstam@telia.com> wrote: > I have a stratified sample with stratum weights wh= Nh/nh. The > stratum > sizes are known. The samples are not proportional to stratum sizes. > The > task is to calculate variances for proportions, e.g. the proportion of > a category of objects with a particular characteristic. How can I do > that with STATA11? > Klas > klas.rydenstam@telia.com > > * > * 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/ > * * 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/