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

From |
"Kabir Chabal" <kabs06@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: pweights in summarize / describe / codebook |

Date |
Fri, 26 Oct 2007 11:36:46 -0700 |

Thanks! Was working with codebook version 1.3.18 (in /base) instead of 1.4.1 (in /updates). Just wanted a quick way to get the unique obs and label column with weights -- not sure if summarize can do this as quickly. On 10/26/07, Austin Nichols <austinnichols@gmail.com> wrote: > Kabir Chabal <kabs06@gmail.com>: > If you search the .ado for "compact" you will likely find the prog > SummCompact which leads to a Mata function... but can't you get what > you need from -summarize-directly? Note official -codebook- also does > not leave items behind in r(). > > On 10/26/07, Kabir Chabal <kabs06@gmail.com> wrote: > > Could someone take a quick look at codebook.ado and see how the option > > "compact" is coded (I can't locate where it's incorporated). > > Managed to get weights in for the detailed listing but not for the compact one! > > > > On 10/25/07, Kabir Chabal <kabs06@gmail.com> wrote: > > > Thanks Austin -- has anyone already hacked codebook.ado to include a > > > weight option and pushed the weights through wherever summ is invoked? > > > > > > On 10/25/07, Austin Nichols <austinnichols@gmail.com> wrote: > > > > Kabir Chabal <kabs06@gmail.com>: > > > > To elaborate--if it's codebook you need, the output is mostly > > > > available from other commands, e.g. -tab- or -sum, d- which allow > > > > aweights. Since aweights produce the same point estimates as > > > > pweights, there is an easy solution. Often, I'd like to > > > > codebook var if othervar>0 > > > > or somesuch, which just seems natural but is not allowed. So I hacked > > > > codebook.ado and saved a new file cb.ado, which may or may not be a > > > > strategy you'd like to emulate. > > > > > > > > On 10/25/07, Austin Nichols <austinnichols@gmail.com> wrote: > > > > > Use aweights. > > > > > http://www.google.com/search?hl=en&q=stata+summarize+pweights > > > > > > > > > > On 10/25/07, Kabir Chabal <kabs06@gmail.com> wrote: > > > > > > What's the quickest work-around to incorporate pweights in summarize / > > > > > > describe / codebook? > > > > > > > > > * > > > > * 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/ > > > * > * 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/

**References**:**st: pweights in summarize / describe / codebook***From:*"Kabir Chabal" <kabs06@gmail.com>

**Re: st: pweights in summarize / describe / codebook***From:*"Austin Nichols" <austinnichols@gmail.com>

**Re: st: pweights in summarize / describe / codebook***From:*"Austin Nichols" <austinnichols@gmail.com>

**Re: st: pweights in summarize / describe / codebook***From:*"Kabir Chabal" <kabs06@gmail.com>

**Re: st: pweights in summarize / describe / codebook***From:*"Kabir Chabal" <kabs06@gmail.com>

**Re: st: pweights in summarize / describe / codebook***From:*"Austin Nichols" <austinnichols@gmail.com>

- Prev by Date:
**Re: st: Strange behavior from conditional logistic - bug?** - Next by Date:
**st: date function** - Previous by thread:
**Re: st: pweights in summarize / describe / codebook** - Next by thread:
**st: =?UTF-8?Q?hadimvo_collinearity?=** - Index(es):

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