brad-cannell / detect_pilot_test_1y

Detection of Elder abuse Through Emergency Care Technicians 1-year Pilot Study
https://brad-cannell.github.io/detect_pilot_test_1y/
Other
1 stars 1 forks source link

Pre-clean the APS data: One row per case number #31

Open mbcann01 opened 3 years ago

mbcann01 commented 3 years ago

Right now, in detect_pilot_test_1y_refine_matches.Rmd, the APS data has a row for each reporter, as opposed to each case. This is causing some issues with merging the data (#27). Specifically, it affects our ability to identify the most proximal APS investigation to each DETECT screening. And we can't just arbitrarily pick one row from each case because we found differing investigation outcomes in some cases.

So, we want to retain the information related to multiple reporters, but we want to do it in a wide format.

Addressing in the bug-31-aps-one-row-per-case branch.

mbcann01 commented 3 years ago

Left off at 54. I just finished replacing the old "mutate_if" code with "mutate(across())" code. Keep checking code down to 136, and then remove within case discrepancies between rows.

mbcann01 commented 3 years ago

Left off on line 300 of data_aps_02_variable management.Rmd in the bug-31-aps-one-row-per-case branch.