Statalist The Stata Listserver


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

st: RE: drop observations panel data


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: drop observations panel data
Date   Wed, 17 May 2006 17:10:46 +0200

--- Julia Spies wrote:
>  I have a panel data set with tradingpair as the ID and year as the time
> variable. For some of the tradingpairs I would now like to drop observations
> whenever year<1995. Hence, I would need a command like
> 
> drop if tradingpair=countryX and year<1995

drop if tradingpair==countryX & year<1995

countryX is the value of traidingpair for country X

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



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