Hello, team.
I am using stata 13. I have to do this: Define 11 quantiles of surp, where quantile 6
contains all observations with a (exactly) zero surprise, quantiles 7-11
contain positive, and quantiles 1-5 negative surprises.
(on one set of data I do not have exact zero, on the other I do?
I tried sort + xtile, but I do not know how to include a conditional statement.
Could you be so kind to help?
Thank you,
Milena
I am using stata 13. I have to do this: Define 11 quantiles of surp, where quantile 6
contains all observations with a (exactly) zero surprise, quantiles 7-11
contain positive, and quantiles 1-5 negative surprises.
(on one set of data I do not have exact zero, on the other I do?
I tried sort + xtile, but I do not know how to include a conditional statement.
Could you be so kind to help?
Thank you,
Milena
Comment