Statalist The Stata Listserver


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

Re: st: deleting observations


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: deleting observations
Date   Tue, 12 Sep 2006 14:25:50 -0400

Because sterrace is not constant within hhn?

Michael Blasnik
michael.blasnik@verizon.net

----- Original Message ----- From: "menale kassie" <dawitkassie@yahoo.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, September 12, 2006 12:07 PM
Subject: Re: st: deleting observations



Dear statlisters,

Once more I would like to get your help on deleting
observations. When I run equation 1 below after the
command (bys hhn: drop if _N==1) the minimum number of
observation per group (household (hhn) is two.

However, When I run equation 2 below for the
sub-sample of observations using indicator variable
(sterrace ==1) after the command (bys hhn: drop if
_N==1) the minimum number of observation per group is
one. I was expecting the minimum observation per group
to be more than one. I am not clear why this is
happening. I appreciate any help on this.
<snip>
*
*   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