Skip to contents

File Loading

load_srtr_file()
Load an SRTR file and optionally apply labels
set_srtr_wd()
Set the SRTR working directory

Variable and Factor Labeling

apply_srtr_varlabels()
Apply SRTR variable labels to a data frame
apply_srtr_factors()
Apply SRTR factor labels to a data frame

Risk and Score Calculators

add_pdri()
Add Pancreas Donor Risk Index (PDRI)

Missing data

srtr_normalize_missing()
Normalize Missing Value Representations in SRTR Data

Time-to-event & composite dates

Helpers for composing event dates and simple TTE calculations

srtr_composite_death()
Composite death date (OPTN > SSA > TFL)
add_txf_outcomes()
Add time-to-event (TTE) follow-up outcomes to a transplant cohort
add_tte_outcomes()
Add appropriate TTE outcome variables to a data frame based on the df attributes, if the file was loaded using a load function.
srtr_time_to_event()
Helper function to add a time-to-event outcome from a date function

Internal Datasets

formats
SRTR Format Lookup Table
dictionary
SRTR Variable Dictionary

Spatial datasets

transplant_centers_sf
U.S. Transplant Centers (sf), EPSG:5070
UNOS_regions_sf
UNOS Regions by State (sf), EPSG:5070