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

Re: st: RE: making a matched data set


From   Edwin Leuven <[email protected]>
To   [email protected]
Subject   Re: st: RE: making a matched data set
Date   Wed, 18 Aug 2004 09:52:17 +0200

and then doing it in 1 step:

bysort hhid: drop if _N==1

Scott Merryman wrote:
bysort hhid: gen num = _N
drop if num == 1
drop num

where, in this case, _N is the number of observations for each group (for
more helpful advice see Nick Cox's "Speaking Stata:  How to move step by:
step" Stata Journal (2)1 )

Hope this helps,
Scott
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index