Skip to contents

Computes the number donors on dataset D10K that are a match to a given transplant candidate. A sample of D10K is selected according to cPRA value, afterwards donors ABO identical and HLA mismatch level 1 or 2 (0 DR or (1 DR and 0 B)) are filtered.

Usage

matchability(
  cABO = "A",
  cPRA = 85,
  cA = c("2", "29"),
  cB = c("7", "15"),
  cDR = c("4", "7"),
  seed.number = 3
)

Arguments

cABO

A character from 'A', 'B', 'AB', 'O'

cPRA

candidate's cPRA value

cA

candidate's HLA-A typing

cB

candidate's HLA-B typing

cDR

candidate's HLA-DR typing

seed.number

a numeric seed that will be used for random number generation.

Value

Match Score measure of how difficult it is to match a patient with a organ donor. A score from 1 (easy to match) to 10 (difficult to match).

Examples

matchability(cABO = 'A', cPRA = 85,
cA = c('2','29'), cB = c('7','15'), cDR = c('4','7'),
seed.number = 3)
#> [1] 67