Hi,
I have a dataset that should include information on 2 interviewees per household: a female and a male partner. However, I noticed that plenty of information has been collected regarding only one of the partners or about more members of the same household by having the same gender (i.e. 2 females, or 3 males).
I would like to count the number of households for which we have information on both 1 male and 1 female.
An example of the data looks like this (with plenty more observations):
In this small extract of data, only Household ID 21 has info on 1 male and 1 female. How can I derive an exact count of the Households that are like ID 21 (for which there is info on 1 male and 1 female)?
Thank you very much.
I have a dataset that should include information on 2 interviewees per household: a female and a male partner. However, I noticed that plenty of information has been collected regarding only one of the partners or about more members of the same household by having the same gender (i.e. 2 females, or 3 males).
I would like to count the number of households for which we have information on both 1 male and 1 female.
An example of the data looks like this (with plenty more observations):
| ID | Gender | ||
| 1. male | 2. female | Total | |
| 1 | 0 | 1 | 1 |
| 2 | 2 | 0 | 2 |
| 4 | 0 | 1 | 1 |
| 5 | 0 | 1 | 1 |
| 6 | 2 | 0 | 2 |
| 7 | 0 | 3 | 3 |
| 11 | 0 | 1 | 1 |
| 12 | 0 | 2 | 2 |
| 15 | 0 | 2 | 2 |
| 17 | 0 | 1 | 1 |
| 21 | 1 | 1 | 2 |
Thank you very much.

Comment