Hi all,
Hoping to get some help on an issue. I am running on Stata SE 18.0.
I have a dataset that includes variables such as:
case | partyid | relatedcase | filedate
D12 987 M67 4/12/22
D13 987 6/21/23
M67 987 1/30/22
Based on the above example, I need to pull filedate (1/30/22) from case M67 into case D12 (with relatedcase M67). I am hitting a wall in how to do that. The dataset has over 1.8 million observations.
So ideally, it would look like this afterwards:
case | partyid | relatedcase | filedate | originalfiledate
D12 987 M67 4/12/22 1/30/22
D13 987 6/21/23
M67 987 1/30/22
Additionally, I would like to then drop all cases that start with M after pulling their filedates into their related cases that start with D.
Thanks!
Hoping to get some help on an issue. I am running on Stata SE 18.0.
I have a dataset that includes variables such as:
case | partyid | relatedcase | filedate
D12 987 M67 4/12/22
D13 987 6/21/23
M67 987 1/30/22
Based on the above example, I need to pull filedate (1/30/22) from case M67 into case D12 (with relatedcase M67). I am hitting a wall in how to do that. The dataset has over 1.8 million observations.
So ideally, it would look like this afterwards:
case | partyid | relatedcase | filedate | originalfiledate
D12 987 M67 4/12/22 1/30/22
D13 987 6/21/23
M67 987 1/30/22
Additionally, I would like to then drop all cases that start with M after pulling their filedates into their related cases that start with D.
Thanks!
Comment