This function accepts two data frames. One is a USRDS longitudinal cohort. The second is a data frame with dates representing an event. The resulting output is a USRDS longitudinal cohort with the events added to the data frame
Arguments
- USRDS_cohort
is a USRDS cohort created using the
create_usrds_cohort()function- event_data_frame
is a data frame with a date variable (delineated via the
event_dateoption).- event_date
is a character string naming a date variable in
event_data_framethat specifies when each patient experiences the event- event_variable_name
is a string with the variable name for the new event variable created
