hi,
I have the below data; I am new in Stata so struggling to produce the right summary.
how I calculate the below summary: (There are 10 variables for each household and in some survey just 5 members' data are available while few all 10)
- Counting all line # for individual households: *For household 1 there is 20 member (10 in the first family + 10 in the second family) while for household 4 is just 1;
- counting all line# for individual households cluster vise: CLUSTER 3 only 10 people while in Cluster 4 there is just one person living
- Counting all males/females living in individual households as well as cluster vise.
- total populations in survey cluster vise and # of male & female row and column total.
I have the below data; I am new in Stata so struggling to produce the right summary.
hid | fid | cluster | line1 | sex1 | age1 | line2 | sex2 | age2 | .... | line10 | sex10 | age10 | |
1 | 1 | 1 | 1 | m | 5 | 2 | m | 12 | ..... | 10 | f | 65 | |
1 | 2 | 1 | 1 | f | 20 | 2 | m | 14 | 10 | m | 80 | ||
2 | 1 | 2 | 1 | m | 8 | 2 | m | 12 | |||||
3 | 1 | 3 | 1 | f | 54 | 2 | f | 3 | ..... | 15 | 60 | ||
4 | 1 | 2 | 1 | m | 22 |
- Counting all line # for individual households: *For household 1 there is 20 member (10 in the first family + 10 in the second family) while for household 4 is just 1;
- counting all line# for individual households cluster vise: CLUSTER 3 only 10 people while in Cluster 4 there is just one person living
- Counting all males/females living in individual households as well as cluster vise.
- total populations in survey cluster vise and # of male & female row and column total.
Comment