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

st: Simple "Drop" Question


From   "mert 0723" <[email protected]>
To   [email protected]
Subject   st: Simple "Drop" Question
Date   Wed, 13 Oct 2004 23:16:23 -0400

Hello,

I am trying to use the "Drop" function to do something that should be
simple, but I've looked through the manuals and can't find how to do it.

I have a big panel of n companies, with 10 years of data per company. The
companies are identified by the variable CONAME. If the company has a
negative dividend reported in any year, I would like to drop *all*
observations of that company (i.e. all observations associated with the
CONAME corresponding to the negative dividend figure). How do I do this? If
I just type "drop if dividend < 0", it only drops that observation, not the
other observations for that CONAME. Help appreciated.

Thanks,
Jim Shields

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee�
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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