A vectorised function to calculate EPTS scores as percentiles for norm-related prediction of patient survival after adult renal transplants. This function generates the EPTN scores as percentiles using the most recent lookup table on the OPTN website published in March 2019 and using SRTR data from 2018. The table can be found at https://optn.transplant.hrsa.gov/media/2973/epts_mapping_table_2018.pdf

epts(age, dm, prev_tx, dx)

age | numeric vector of patient age in years (with decimals) |
---|---|

dm | numeric vector of whether patient diabetic (1 = yes, 0 = no) |

prev_tx | numeric vector of whether patient has a previous solid organ transplant |

dx | numeric vector of duration of dialysis in years (with decimals) |

numeric vector of EPTS scores as percentiles

This function requires the dplyr package to be installed. References: https://optn.transplant.hrsa.gov/resources/allocation-calculators/epts-calculator/ and https://optn.transplant.hrsa.gov/media/1511/guide_to_calculating_interpreting_epts.pdf

epts(age = 23.5838467, dm = 0, prev_tx = 1, dx = 5.0814511)#> [1] 9epts(age = 52.8788501, dm = 0, prev_tx = 0, dx = 0)#> [1] 18epts(age = 22.5242984, dm = 1, prev_tx = 1, dx = 6.8747433)#> [1] 33