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 <>
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,
*   For searches and help try:

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