Initializes a cohort of USRDS patients. Data set must have a variable named USRDS_ID.
Arguments
- df
is a data frame used to initialize a USRDS data frame. Typically, this is a data frame created from the
PATIENTSfile, potentially merged with theMEDEVIDfile or other files with baseline variables which are to be time-invariant.USRDS_IDmust be unique or the function will error.- start_date
is a fixed data or a date variable in the
dfdata frame specifying when each patient is considered to enter the cohort.- end_date
is a fixed data or a date variable in the
dfdata frame specifying when each patient is considered to exit the cohort.
