Indeed, I use individual-based household survey database which can be presented as follows:
hh_id | indiv_id | disabled | disabled_hh |
01 | 011 | 1 | 0 |
01 | 012 | 1 | 0 |
02 | 021 | 2 | 1 |
03 | 031 | 2 | 4 |
03 | 032 | 2 | 4 |
03 | 033 | 2 | 4 |
03 | 034 | 2 | 4 |
03 | 035 | 1 | 4 |
04 | 041 | 1 | 0 |
04 | 042 | 1 | 0 |
05 | 051 | 2 | 1 |
06 | 061 | 2 | 3 |
06 | 062 | 2 | 3 |
06 | 063 | 2 | 3 |
07 | 071 | 1 | 0 |
08 | 081 | 1 | 2 |
08 | 082 | 1 | 2 |
08 | 083 | 2 | 2 |
08 | 084 | 2 | 2 |
09 | 091 | 1 | 0 |
10 | 101 | 1 | 1 |
10 | 102 | 2 | 1 |
10 | 103 | 1 | 1 |
11 | 111 | 2 | 1 |
indiv_id = Household member (individual) id
disabled = no (1) or yes (2)
disabled_hh = number of disabled in each household
Which STATA commands can help to compute the disabled_hh column when considering information about 11 000 households?
Thanks in advance for your availability.
0 Response to How to count for each household, the number of household member who present specific characteristics
Post a Comment