Code:
gen inc10=(income2==1) gen inc15=(income2==2) gen inc20=(income2==3) gen inc25=(income2==4) gen inc35=(income2==5) gen inc50=(income2==6) gen inc75=(income2==7) gen inc75p=(income2==8)
This the different value of one person having the access to single/mutiple health/no providers . How can I find the percentage of people having access to the healthcare providers ( single /multiple ) given the different income bins ?
Code:
qui gen one_hcare_provider = (persdoc2==1) qui gen multi_hcare_provider = (persdoc2==2) qui gen no_hcare_provider = (persdoc2==3)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(income2 persdoc2 hlthpln1) 5 2 1 7 1 1 7 2 1 7 1 1 77 1 1 99 1 1 77 2 1 7 1 1 8 1 1 6 1 1 5 2 1 99 1 1 8 1 1 1 2 1 99 1 1 8 1 1 7 1 1 77 1 1 1 1 1 4 1 1 3 3 1 8 2 1 77 1 1 99 1 1 99 1 1 5 2 1 6 1 1 3 1 1 8 1 1 77 1 1 7 1 1 99 1 1 6 1 1 4 1 1 5 1 2 3 1 1 7 1 1 99 1 1 99 1 1 99 1 1 77 1 1 8 1 1 2 1 1 2 1 1 8 1 1 99 1 1 8 1 1 6 1 1 99 2 1 6 1 1 77 1 1 99 2 1 5 1 1 4 1 1 5 1 1 8 1 1 77 1 1 8 1 1 6 1 1 99 1 1 99 1 1 8 1 1 99 2 1 3 1 1 7 1 1 6 3 1 8 1 1 8 1 1 7 3 1 3 1 1 8 1 1 99 2 1 4 2 1 3 1 1 77 1 1 99 1 1 99 3 1 8 1 1 3 3 2 77 1 1 1 1 1 8 1 1 2 1 1 99 2 1 5 1 1 1 3 2 7 1 1 99 1 1 99 1 1 2 3 1 8 1 1 7 1 1 99 2 1 5 1 1 8 1 1 5 1 1 7 1 1 8 1 1 99 1 1 77 1 1 end
0 Response to Percentage of a variable depending on different income bins
Post a Comment