Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: variance calculation, stratified sample

From   Steve Samuels <>
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"



Steven J. Samuels
18 Cantine's Island
Saugerties NY 12477
Voice: 845-246-0774
Fax:    206-202-4783

On Tue, Sep 21, 2010 at 10:05 AM, Klas Rydenstam
<> 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
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index