Adjust Exposure for Static Matching
This function removes the pairs whose exposure times do not match. This happens when the outcome of the unvaccinated individual occurs before the vaccination date of their partner.
adjust_exposure( matched_cohort, outcome_date_col, censoring_date_col, immunization_date, start_cohort, end_cohort )
matched_cohort
data.frame
match_cohort_
outcome_date_col
censoring_date_col
start_cohort
end_cohort
data.frame with matched population and corrected exposure times.
Useful links