Dear Statalist,
I have a problem with creating quintiles in stata14, where quintile is based on the whole data set 1994-2015 rather than per year.
I'm using a data set from 1994 - 2015 with a variable for real income deflated to 1994. Real income has been increasing, and so when I create quintiles using
The number of people in the last quintile in 1994 is much lower than in 2015. So it seems to be that if you make, for example, 50.000 ruble in 1994, even though for that year you would belong to the first quintile, overall you are now in the - for example - third quintile because income increased in the years 2000-2015
I think I would prefer to have quintiles based on the specific years. (But, in my analysis i do not want to have quintiles for every single year). So for example, when I run a probit model (and margins) to see what the probability is of having catastrophic health expenditures i want to have 5 quintiles.
Many thanks,
Rogier
I have a problem with creating quintiles in stata14, where quintile is based on the whole data set 1994-2015 rather than per year.
I'm using a data set from 1994 - 2015 with a variable for real income deflated to 1994. Real income has been increasing, and so when I create quintiles using
Code:
xtile quint = realincome, nq(5)
Code:
. tabulate catastrophic_30 quint if year==1994 Catastroph ic 30 5 quantiles of realincome percent 1 2 3 4 5 Total 0 1,048 1,112 817 570 347 3,894 1 26 4 2 1 3 36 Total 1,074 1,116 819 571 350 3,930 tabulate catastrophic_30 quint if year==2015 Catastroph ic 30 5 quantiles of realincome percent 1 2 3 4 5 Total 0 246 667 1,124 1,630 2,058 5,725 1 418 154 213 179 154 1,118 Total 664 821 1,337 1,809 2,212 6,843
I think I would prefer to have quintiles based on the specific years. (But, in my analysis i do not want to have quintiles for every single year). So for example, when I run a probit model (and margins) to see what the probability is of having catastrophic health expenditures i want to have 5 quintiles.
Many thanks,
Rogier
Comment