Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: variance calculation, stratified sample


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/


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