Hello,
I'm new to Stata so forgive my ignorance. I have searched the forums for this answer but cannot find it.
I am cleaning a data set with Stata. I have a categorical variable "cal". I want to remove any categories that have fewer than 15 observations. In other words, if 85 respondents selected "guitar" but only 4 respondents selected "flute", I'd want to remove all cases that responded "flute" but keep the cases that selected "guitar".
How do I do this?
Thanks in advance.
I'm new to Stata so forgive my ignorance. I have searched the forums for this answer but cannot find it.
I am cleaning a data set with Stata. I have a categorical variable "cal". I want to remove any categories that have fewer than 15 observations. In other words, if 85 respondents selected "guitar" but only 4 respondents selected "flute", I'd want to remove all cases that responded "flute" but keep the cases that selected "guitar".
How do I do this?
Thanks in advance.
Comment