A vectorised function to calculate raw EPTS scores for norm-related prediction of patient survival after adult renal transplants. This function generates the raw EPTS scores which can be converted to percentiles using the lookup table on the OPTN website at https://optn.transplant.hrsa.gov/media/2973/epts_mapping_table_2018.pdf
raw_epts(age, dm, prev_tx, dx)
numeric vector of raw EPTS scores
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
raw_epts(age = 23.5838467, dm = 0, prev_tx = 1, dx = 5.0814511) # 0.9666517
#> [1] 0.9666517
raw_epts(age = 52.8788501, dm = 0, prev_tx = 0, dx = 0) # 1.440306
#> [1] 1.440306
raw_epts(age = 22.5242984, dm = 1, prev_tx = 1, dx = 6.8747433) # 1.868751
#> [1] 1.868751