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: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-?
From
Stas Kolenikov <[email protected]>
To
[email protected]
Subject
Re: st: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-?
Date
Mon, 19 Apr 2010 10:09:40 -0500
I suspect these are -pweights- rather than -fweights-, but in any case
the combo of my -bsweights- and Jeff Pitblado's -bs4rw- may be an
option to look into.
On Mon, Apr 19, 2010 at 1:48 AM, Misha Spisok <[email protected]> wrote:
> Hello, Statalist!
>
> I can't figure out how to get around -bootstrap-'s inability to apply
> weights. I'd like to do something like the following (assuming it's
> correct, in principle):
>
> bootstrap me_se=r(sd): sum me [fweight=number]
> bootstrap me_se=e(b): reg me [fweight=number]
>
> where 'me' is a statistic for which I am trying to get a standard error.
>
> Data look something like below, with 'me' being the statistic and
> 'number' being the number of times that value is repeated in the
> population. The actual sum of 'number' is over 100,000,000.
>
> me number
> 0.004656171 411
> 0.000921952 256
> 0.00332348 677
> 0.003846806 875
> 0.005841959 815
> 0.008070664 717
> 0.000966846 780
> 0.004082443 403
> 0.00874068 546
> 0.004901177 925
> 0.004868469 87
> 0.008825776 346
> 0.006638993 432
> 0.009060225 325
> 0.007342354 999
> 0.007714793 28
> 0.006781056 332
> 0.002377917 341
> 0.009975764 137
>
> Thank you for taking the time to read this.
>
> Best,
>
> Misha
> *
> * 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/
>
--
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.
*
* 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/