Hello everyone,

Just a quick question on dummy creation.

I'm working on a household survey and I want to create a dummy which flags the individuals that live in a household whose breadwinner is a woman.

For example:

Code:
list hous_id sexo breadwinner mulherchefe in 1/12

     +------------------------------------------+
     |     hous_id   sexo   breadw~r   mulher~e |
     |------------------------------------------|
  1. | 11000001616      1          1          1 |
  2. | 11000001616      0          0          . |
  3. | 11000001616      0          0          . |
  4. | 11000001616      1          1          1 |
  5. | 11000001616      0          0          . |
     |------------------------------------------|
  6. | 11000001616      1          0          . |
  7. | 11000001616      1          0          . |
  8. | 11000001616      0          0          . |
  9. | 11000001616      0          0          . |
 10. | 11000001616      1          1          1 |
     |------------------------------------------|
 11. | 11000001616      0          0          . |
 12. | 11000001616      0          0          . |
     +------------------------------------------+
I was able to identify who are the women breadwinners (under 'mulherchefe'), but I need my code to fill all the other individuals within the same household (in which a women is the breadwinner) as 1 as well.

Thanks.