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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: brrweight(), jkrweight(), and vce() options of svyset


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: brrweight(), jkrweight(), and vce() options of svyset
Date   Wed, 12 May 2010 14:37:17 -0400

Putting the lie to
http://www.stata.com/statalist/archive/2010-05/msg00571.html
Stas? ;)

On Wed, May 12, 2010 at 2:27 PM, Stas Kolenikov <skolenik@gmail.com> wrote:
> webuse nhanes2brr, clear
> merge 1:1 sampl using  http://www.stata-press.com/data/r11/nhanes2jknife.dta
> drop _merge
> svyset
> * amazingly, Stata picked up the jackknife weights into the design!
> merge 1:1 sampl using  http://www.stata-press.com/data/r11/nhanes2.dta
> drop _merge
> svyset
> * but it failed to pick up the PSUs into the design. Ah well, let's force it:
> svyset psu [pw=final] , strat( strata ) jkr( jkw* ) brrw( brr* )
> svy : mean bp*
> svy , vce( linearized ) : mean bp*
> svy , vce( brr ) : mean bp*
> svy , vce( jknife ) : mean bp*

*
*   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