Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: multiple response question (correction)


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: multiple response question (correction)
Date   Tue, 22 Oct 2002 14:49:08 +0100

I replied to Phung Lang 
> 
> In some circumstances you might want to
> weight by 1 / # choices, 
> so the total is # individuals. 
> 
> . bysort id : gen byte nchoices = _N 
> . tab choice  [aw=1/id] 

Nick Winter pointed out privately that this is 
a typo. Should be 

. tab choice [aw=1/nchoices] 

Nick 
n.j.cox@durham.ac.uk 

*
*   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/



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