Dear Statalist members,
I need your help. I have 1068 primary sampling unit (PSU) and each unit has 12 households as secondary sampling unit (SSU). The SSU has i family members. I need to create new variables by adding each members income of the each household. How do I do that in Stata?
egen HHDINC==sum( memberINC), by (PSU & SSU) ??? The PSU number is 1-1068, however the SSU code is 1-12, repetitively. I need to egen the new var when the two conditions are met.
I need your help. I have 1068 primary sampling unit (PSU) and each unit has 12 households as secondary sampling unit (SSU). The SSU has i family members. I need to create new variables by adding each members income of the each household. How do I do that in Stata?
egen HHDINC==sum( memberINC), by (PSU & SSU) ??? The PSU number is 1-1068, however the SSU code is 1-12, repetitively. I need to egen the new var when the two conditions are met.