Hello
I have a question.
My merge file is huge ( obseravtions are 163 718). I had an event. Before the event were 2 surveys (1 Wave and 2 Wave), after the event were 2 surveys (4 Wave and 5 Wave) It looks like:
My condition: I need only these observations what at least one time was participated in 1 or 2 wave (before the evenet) and at least one time was participated in 4 or 5 wave (after the event).
E.g. AT-01 is needed, because one time in 1 wave and one time in 4
AT-02 is needed, beacuse two times in before the event and one time after the event
BF-05 is not needed, because two times before the evenet and 0 times after the event
CZ-44 is needed, because one time before the evenet and one time after the event
CZ-45 is not needed, beacues 0 time in before event and one time after event
My task: drop these observations which are not needed.
Anybody has idea, how to do that?
I have a question.
My merge file is huge ( obseravtions are 163 718). I had an event. Before the event were 2 surveys (1 Wave and 2 Wave), after the event were 2 surveys (4 Wave and 5 Wave) It looks like:
| Mergeid | Wave |
| AT-01 | 1 |
| AT-01 | 4 |
| AT-02 | 1 |
| AT-02 | 2 |
| AT-02 | 5 |
| BF-05 | 1 |
| BF-05 | 2 |
| CZ-44 | 2 |
| CZ-44 | 4 |
| CZ-45 | 5 |
E.g. AT-01 is needed, because one time in 1 wave and one time in 4
AT-02 is needed, beacuse two times in before the event and one time after the event
BF-05 is not needed, because two times before the evenet and 0 times after the event
CZ-44 is needed, because one time before the evenet and one time after the event
CZ-45 is not needed, beacues 0 time in before event and one time after event
My task: drop these observations which are not needed.
Anybody has idea, how to do that?

Comment