get_censoring_after_match {vaccineff} | R Documentation |
Create Censoring date by Pairs
Description
This function creates the censoring date of the pairs by inheriting the minimum date in which any of the partners has a censoring event. Two conditions are checked to inherit a censoring date in a pair.
Individual censoring occurs before individual event;
If an outcome happens before the censoring of the partner no censoring is inherited by the other.
Usage
get_censoring_after_match(data_set, outcome_date_col, censoring_date_col)
Arguments
data_set |
|
outcome_date_col |
Name of the column that contains the outcome dates. |
censoring_date_col |
Name of the column that contains the censoring date. |
[Package vaccineff version 1.0.0 Index]