Applies Portuguese (PT) algorithm on deceased donor's kidney allocation for transplantation. Ordering of waitlisted candidates for a given donor according to PT's algorithm.
Arguments
- iso
A logical value for isogroup compatibility.
- dABO
A character value with ABO blood group (O, A, B, AB).
- dA
A two elements character vector donor's HLA-A typing.
- dB
A two elements character vector donor's HLA-B typing.
- dDR
A two elements character vector donor's HLA-DR typing.
- donor.age
A numeric value with donor's age.
- df.abs
A data frame with candidates' antibodies.
- data
A data frame containing demographics and medical information for a group of waitlisted transplant candidates.
- points.80
A numerical value (0 - 20) for the points to a cPRA >= 80
- points.50
A numerical value (0 - 20) for the points to a cPRA >= 50
- points.dialysis
punctuation for each month on dialysis
- points.age
A numerical value for the points to age difference
- itemA
Points for HLA fullmatch (no mm for HLA-A, B and DR)
- itemB
Points without mm for HLA-B and DR
- itemC
Points with 1 mm for HLA-B and DR
- itemD
Points with 1 mm for HLA-B and 1 mm for DR
- itemE
Points for remaining possibilities
- n
A positive integer to slice the first candidates.
- check.validity
Logical to decide whether to validate input.
Examples
pts(iso = TRUE, dABO = "A",
dA = c("1","2"), dB = c("15","44"), dDR = c("1","4"),
donor.age = 65, data = candidates,
df.abs = cabs,
itemA = 12, itemB = 8, itemC = 4, itemD = 2, itemE = 1,
n = 2)
#> ID bg A1 A2 B1 B2 DR1 DR2 mmA mmB mmDR mmHLA age donor_age dialysis cPRA
#> 1: 129 A 2 24 40 45 14 10 1 2 2 5 59 65 75 90
#> 2: 442 A 3 25 7 15 13 4 2 1 1 4 68 65 98 0
#> HI ptsPT SP ptsHLA ptsPRA ptsage ptsdial urgent
#> 1: TRUE 20.5 3 1 8 4 7.5 0
#> 2: FALSE 15.8 1 2 0 4 9.8 0