One of a variable in my dataset contains many values and I would like to keep 30 values out of more than 500 using Stata 13. The variable is in string format so I tried to use the keep if inlist(variable, x1, x2,..) but Stata returned a message that the list is long. In this forum, I found an egen command option but it requires numeric values. Please help and thank you in advance.
-
Login or Register
- Log in with
Comment