I have created a dummy 0/1 against years prior to an event and after an event.
I want to delete firms that have dummy=0 less than 2 times and dummy=1 less than 3 times.
Is it possible to combine both the conditions?
The code below is wrong but what should be be corrected below?
proc sql;
create table want as
select dummy,count(dummy=0) as count1
select dummy,count(dummy=1) as count2
from have
group by gvkey having calculated count1 gt 2 & count2 gt 3 ;
quit;