Dear Statalist,
I want to separate a specific variable in quintiles, not by the number of observations, which is the result generated by xtile command, but by the values of the observations.
The code with I used is this:

This quintiles are formed by the numbers of observation, as we can see in the first columm.
There's any way to do this by the values of the observations? Does anyone have any idea about how to do this?
Thank you!
I want to separate a specific variable in quintiles, not by the number of observations, which is the result generated by xtile command, but by the values of the observations.
The code with I used is this:
Code:
xtile port_LB = LB_a_1, nq(5) table port_LB, contents(n LB_a_1 min LB_a_1 max LB_a_1 mean LB_a_1)
This quintiles are formed by the numbers of observation, as we can see in the first columm.
There's any way to do this by the values of the observations? Does anyone have any idea about how to do this?
Thank you!
Comment