Hello,
Im new to STATA so excuse my inexperience. In my dataset I have multiple observations per id. In a simplistic way it looks like this
I want to do a mean comparrison t test for X on the dummy variabele. However I only need 1 observations per ID instead of the 3 observations. I dont want to delete observations since I need the irrelevant data for other test.
How can I do this?
Thanks in advance.
Im new to STATA so excuse my inexperience. In my dataset I have multiple observations per id. In a simplistic way it looks like this
ID | Dummy | X | Irrelevant data | More irrelevant data |
1 | 1 | 5 | ||
1 | 1 | 5 | ||
1 | 1 | 5 | ||
2 | 0 | 2 | ||
2 | 0 | 2 | ||
2 | 0 | 2 | ||
3 | 1 | 4 | ||
3 | 1 | 4 | ||
3 | 1 | 4 |
How can I do this?
Thanks in advance.