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

Mapping transplant geography

get_hrsa_transplant_centers()
Download HRSA Organ Procurement & Transplantation Center Locations
get_hrsa_optn_regions()
Get OPTN/UNOS Region Boundaries
get_hrsa_opo_service_areas()
Download HRSA OPO Service Area Boundaries
calculate_geography_coverage_gain()
Calculate net geographic coverage gain from adding new coverage areas to an existing coverage base
rank_individual_coverage_gains()
Rank individual candidate areas by marginal coverage gain

Spatial datasets

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

Package data

formats
SRTR Format Lookup Table
dictionary
SRTR Variable Dictionary