Statalist The Stata Listserver


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

Re: st: deleting observations


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: deleting observations
Date   Tue, 12 Sep 2006 14:25:50 -0400

Because sterrace is not constant within hhn?

Michael Blasnik
[email protected]

----- Original Message ----- From: "menale kassie" <[email protected]>
To: <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index