I am trying to create income quintiles, by creating 5 approximately equal groups for my income variable. For some reason, when I use the cut function with the egen command, with 5 groups as option, Stata only create 4 groups, with the first group having approximately 40% of the observations (rather than 20% as it should be with quintiles). I am not sure why this is happening, maybe I am missing something obvious, but I would appreciate some help. As an aside, when I ask Stata to create quartiles (by using the group(4) option), Stata behaves correctly, creating four quartiles. Below is the relevant portion of the log file. Thanks.
Code:
. desc rincome
Variable Storage Display Value
name type format label Variable label
------------------------------------------------------------------------------------------------
rincome float %9.0g Real Yearly Wage Income Last Year
. egen incomecat = cut(rincome), group(5)
(135,486 missing values generated)
. tab incomecat
incomecat | Freq. Percent Cum.
------------+-----------------------------------
1 | 92,950 39.99 39.99
2 | 46,410 19.97 59.96
3 | 46,565 20.04 80.00
4 | 46,483 20.00 100.00
------------+-----------------------------------
Total | 232,408 100.00

Comment