I have a dataset where there are multiple observations per ID. Some have 1, 2, or 3 observations per ID. I want to randomly drop one observation for every ID if that ID has more than 1 observation.
Additionally, how would I do this if I want drop 2 observation for those IDs that have a total of 3 observations?