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]

From |
Misha Spisok <misha.spisok@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-? |

Date |
Mon, 19 Apr 2010 22:56:42 -0700 |

Thank you, Professors Samuels and Kolenikov, Your replies helped a lot. Best, Misha On Mon, Apr 19, 2010 at 8:09 AM, Stas Kolenikov <skolenik@gmail.com> wrote: > 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 <misha.spisok@gmail.com> 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/ > * * 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/

**References**:**st: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-?***From:*Misha Spisok <misha.spisok@gmail.com>

**Re: st: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-?***From:*Stas Kolenikov <skolenik@gmail.com>

- Prev by Date:
**st: Percentage Change of a Probability** - Next by Date:
**Re: st: How to (almost) randomly reduce the number of observations?** - Previous by thread:
**Re: st: How to apply -bootstrap- but use -fweight- in -summarize- or -regress-?** - Next by thread:
**st: correlation in one table** - Index(es):