Good afternoon,
I have a panel dataset with observations from different countries and different years.
I want to drop the observations that have:1) year < 1986 and countryname == "Spain" or 2) year < 1986 and countryname == "Portugal".
I wrote the following code:
drop if year < 1986 & (countryname == "Spain" | countryname == "Portugal")
Does this code perform what I want ?
Thanks in advance!