Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to deleted a subgroup conditionally?

    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.

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	30.2 KB
ID:	1682043


    Many thanks and best regards.
    Attached Files
Working...
X