Hi!
I am terribly sorry about my inability to perform this task, but I cannot get it to work or find a reasonable solution online.
I am performing a regression discontinuity design where I study the effect of growing up with parents on a full vs. reduced unemployment benefit scheem. I have identified parents in the treatment and control group and created the variable treatment (0=control, 1=treatment). Each child has a personID, a motherID and a fatherID. I wish to assign the child the treatment=1, if one of the parents is located in the treatment group (treatment=1) and treatment=0 if both parents are assigned to the control group (treatment=0).
I have highligthed the values that I want stata 15.1 to calculate. I am not able to load additional packaged as my job does not allow it for safety reasons.
Also, I would like to create a new variable family-ID that links children to parents where only one ID (either mother or father) is needed to be part of the family.
I am terribly sorry about my inability to perform this task, but I cannot get it to work or find a reasonable solution online.
I am performing a regression discontinuity design where I study the effect of growing up with parents on a full vs. reduced unemployment benefit scheem. I have identified parents in the treatment and control group and created the variable treatment (0=control, 1=treatment). Each child has a personID, a motherID and a fatherID. I wish to assign the child the treatment=1, if one of the parents is located in the treatment group (treatment=1) and treatment=0 if both parents are assigned to the control group (treatment=0).
PersonID | MotherID | FatherID | Treatment |
1 | 1 | ||
2 | 0 | ||
3 | 1 | ||
4 | 1 | 2 | - (1) |
5 | 3 | - | - (1) |
Also, I would like to create a new variable family-ID that links children to parents where only one ID (either mother or father) is needed to be part of the family.
Comment