My data looks like this:
| hh_id | indl | ind_salary | hh_income | 
|---|---|---|---|
| 1 | 1 | 200 | |
| 1 | 2 | 450 | |
| 1 | 3 | 00 | |
| 2 | 4 | 1232 | |
| 2 | 5 | 423 | 
Individuals with the same hh_id lives in the same household so they will have the same household income. And for that the variable hh_income equal the sum of the salary of all persons with the same hh_id;
so my data would look like:
| hh_id | indl | ind_salary | hh_income | 
|---|---|---|---|
| 1 | 1 | 200 | 650 | 
| 1 | 2 | 450 | 650 | 
| 1 | 3 | 00 | 650 | 
| 2 | 4 | 1232 | 1655 | 
| 2 | 5 | 423 | 1655 | 
Any ideas please;
 
     
     
     
    