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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

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

Subject |
st: RE: Sorting in a table a list of binomial variables by frequency of apparition in a survey context |

Date |
Mon, 13 Oct 2008 12:38:41 +0200 |

Why not use -proportion- which allows -pweight-s and then store the results via -ssc d parmest-. Save it with -parmest- as .dta and -gsort -estimates- afterwards. Then -list- and you have your table... Example (w/o pweights): ************ cap ssc inst parmest sysuse auto, clear prop r parmest, saving(myfile, replace) u myfile, clear drop eq parm dof t p gsort -est l ************ HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ángel Rodríguez Laso Sent: Monday, October 13, 2008 12:28 PM To: statalist@hsphsun2.harvard.edu Subject: st: Sorting in a table a list of binomial variables by frequency of apparition in a survey context Dear Statalisters, I have a list of binomial variables where 1 means that the individual has a determined disease. I need a table where proportions (and their confidence intervals) of these variables (diseases) appear in descending order. Although tab1 has a sort option, my data belong to a survey where pweights are used, and tab1 only accepts fweights (that need to be integers, which is not the case). Any alternative? Many thanks. Angel Rodriguez-Laso * * 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: Sorting in a table a list of binomial variables by frequency of apparition in a survey context***From:*"Ángel Rodríguez Laso" <angelrlaso@gmail.com>

- Prev by Date:
**st: Sorting in a table a list of binomial variables by frequency of apparition in a survey context** - Next by Date:
**Fwd: AW: st: question about rolling regression and nlcom** - Previous by thread:
**st: Sorting in a table a list of binomial variables by frequency of apparition in a survey context** - Next by thread:
**Re: st: RE: Sorting in a table a list of binomial variables by frequency of apparition in a survey context** - Index(es):

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