I have a dataset attached, I just show some first line of the dataset here:
For this dataset, I want to delete all observation belong to every TYPE2 if this TYPE2 belongs to treatment group (treat1=1) but post33treat1 at year 2019 different from 1
For example:
This is the first few line of my dataset, in this case, I want to delete lines 6 and 7 belongs to TYPE2:2563UZ because 2563UZ belongs to treatment group but there is no observation at year 2016.

Many thanks and best regards.
For this dataset, I want to delete all observation belong to every TYPE2 if this TYPE2 belongs to treatment group (treat1=1) but post33treat1 at year 2019 different from 1
For example:
This is the first few line of my dataset, in this case, I want to delete lines 6 and 7 belongs to TYPE2:2563UZ because 2563UZ belongs to treatment group but there is no observation at year 2016.
Many thanks and best regards.
