[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Jann Ben" <ben.jann@soz.gess.ethz.ch> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Percent distribution using the pweight |

Date |
Wed, 24 Aug 2005 22:56:55 +0200 |

Ying wrote: > I want to create the percent distribution (both percent and > frequency are > needed). ... > However, the tab command doesn't allow the pweight. Use aweights. They provide the same results in this case as would pweights, were they allowed. Using tabulate with aweights is ok as long as you are only interested in the raw frequency distribution. However, if you are interested interested in test statistics or confidence intervalls or alike, you should think about using, e.g., svytab (type -help svytab-). On pweights, aweights and means, see http://www.stata.com/support/faqs/stat/supweight.html > BTW, is the fweight the inverse of the pweight? No. fweights are frequency weights. They indicate how many times a specific case (i.e. a specific combination of values) occurs in your sample. ben > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of > wying1@umbc.edu > Sent: Wednesday, August 24, 2005 10:23 PM > To: statalist@hsphsun2.harvard.edu > Subject: st: Percent distribution using the pweight > > > Dear list users, > > I want to create the percent distribution (both percent and > frequency are > needed). I need sth. like: > > > . tab hhldpov1 > Poverty | > status on | > monthly | > threshold: | > 1 | > (<100%),2{1 | > 00%,200%),3 | > {200%)' | Freq. Percent Cum. > ------------+----------------------------------- > 1 | 14,062 13.57 13.57 > 2 | 20,343 19.63 33.20 > 3 | 69,210 66.80 100.00 > ------------+----------------------------------- > Total | 103,615 100.00 > -------------------------------------------------------------- > ---------- > > However, the tab command doesn't allow the pweight. > > So I did. > > --------------------------------------------------------------------- > > . table hhldpov1 [pweight =whfnwgt], format(%12.0g) > > ------------------------ > Poverty | > status on | > monthly | > threshold | > : 1 | > (<100%),2 | > {100%,200 | > %),3{200% | > )' | Freq. > ----------+------------- > 1 | 5.81216e+11 > 2 | 8.55400e+11 > 3 | 3.01133e+12 > ------------------------ > -------------------------------------------------------------- > ----------- > > This only shows the frequency but not the percent. I know I > can simply > calculate the percent distribution by excel, but it would be > nice to have > it directly from the Stata output. Can somebody help me with this? > > BTW, is the fweight the inverse of the pweight? > > > > Many thanks, > Ying > > * > * For searches and help try: > * http://www.stata.com/support/faqs/res/findit.html > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**st: Percent distribution using the pweight** - Next by Date:
**Re: st: RE: RE: RE: vwidth in old boxplot graphics** - Previous by thread:
**st: Percent distribution using the pweight** - Next by thread:
**st: a parsing subtlety** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |