Hi everyone,
I am working with a living conditions survey with information at the individual and household levels. In one of the questions, the individuals are asked about the primary caregiver of the household, and they report the individual's identifier (ind). I want to create the variable dummy, where I assign a value of 1 to the individuals whom at least one member of the household identified as the primary caregiver and 0 otherwise.
hhold ind caregiver dummy
1 1 1 1
1 2 1 1
1 3 2 0
1 4 1 0
2 1 1 1
2 2 1 0
. . . .
. . . .
. . . .
The variable hhold has the identifier of the household, and the variable caregiver has the response to the primary caregiver question.
Thank you,
Tessa
I am working with a living conditions survey with information at the individual and household levels. In one of the questions, the individuals are asked about the primary caregiver of the household, and they report the individual's identifier (ind). I want to create the variable dummy, where I assign a value of 1 to the individuals whom at least one member of the household identified as the primary caregiver and 0 otherwise.
hhold ind caregiver dummy
1 1 1 1
1 2 1 1
1 3 2 0
1 4 1 0
2 1 1 1
2 2 1 0
. . . .
. . . .
. . . .
The variable hhold has the identifier of the household, and the variable caregiver has the response to the primary caregiver question.
Thank you,
Tessa
Comment