Bookmark and Share

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


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

Re: st: variance calculation, stratified sample


From   Steve Samuels <[email protected]>
To   [email protected]
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
[email protected]
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
<[email protected]> 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
> [email protected]
>
> *
> *   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/


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