Hi,
I have a data set which contains information on adults (PERSON = 1/9).
Adults can be carers or non-carers (CARER = YES or NO).
The carers are either caring for someone within their household (NEEDPER = 1/9) , or for a parent living outside the household (NEEDPER == 15).
Carers can be caring for more than one person.
Carers can be receiving care themselves.
I am trying to generate a variable which will tell me if the person who is providing care is also receiving care.
The data are set up something like this:
HOUSEHOLD_ID PERSON NEEDPER CARER
1 1 2 YES
2 1 . NO
3 1 2 YES
3 1 3 YES
4 1 2 YES
4 2 1 YES
5 1 2 YES
5 2 15 YES
5 1 15 YES
So I want to know when within a household, does PERSON ever equal NEEDPER. This will tell me if the PERSON who gives care, is also receiving care.
For example, in HOUSEHOLD_ID 4. PERSON 1 provides care to PERSON 2. But PERSON 2 also PROVIDES care to PERSON 1. Hence PERSON 1 is equal to NEEDPER within the household and vice versa.
Also, in HOUSEHOLD_ID 5 PERSON 1 provides care to PERSON 2 and PERSON 2 provides care to PERSON 15 (a parent living outside the household). Hence, PERSON 2 appears as the PERSON and the NEEDPER in HOUUSEHOLD_ID 5.
How can I generate a variable which will identify if the PERSON is ever the NEEDPER within that household?
Any advice is much appreciated.
Best wishes,
Elizabeth
I have a data set which contains information on adults (PERSON = 1/9).
Adults can be carers or non-carers (CARER = YES or NO).
The carers are either caring for someone within their household (NEEDPER = 1/9) , or for a parent living outside the household (NEEDPER == 15).
Carers can be caring for more than one person.
Carers can be receiving care themselves.
I am trying to generate a variable which will tell me if the person who is providing care is also receiving care.
The data are set up something like this:
HOUSEHOLD_ID PERSON NEEDPER CARER
1 1 2 YES
2 1 . NO
3 1 2 YES
3 1 3 YES
4 1 2 YES
4 2 1 YES
5 1 2 YES
5 2 15 YES
5 1 15 YES
So I want to know when within a household, does PERSON ever equal NEEDPER. This will tell me if the PERSON who gives care, is also receiving care.
For example, in HOUSEHOLD_ID 4. PERSON 1 provides care to PERSON 2. But PERSON 2 also PROVIDES care to PERSON 1. Hence PERSON 1 is equal to NEEDPER within the household and vice versa.
Also, in HOUSEHOLD_ID 5 PERSON 1 provides care to PERSON 2 and PERSON 2 provides care to PERSON 15 (a parent living outside the household). Hence, PERSON 2 appears as the PERSON and the NEEDPER in HOUUSEHOLD_ID 5.
How can I generate a variable which will identify if the PERSON is ever the NEEDPER within that household?
Any advice is much appreciated.
Best wishes,
Elizabeth
Comment