match_pair_info function

Match Information by Pairs

Match Information by Pairs

This function matches numeric/date information of a pair provided in the column column_to_match. This matching procedure is required for sharing the censoring information and the exposure times when adjusting and removing negative exposures generated by incoherent exposure dates.

match_pair_info(data_set, column_to_match, criteria = c("min", "max"))

Arguments

  • data_set: data.frame with cohort information.
  • column_to_match: The name of the column that contains the information shared by the pairs.
  • criteria: Selection criteria when both individuals provide information. This can be the minimum (min) or maximum (max) value.