this is the us inspired recipient selection pool

selection_corisk(
  recip_matrix,
  donor_matrix,
  threshold_number = 0.1,
  whichdonor,
  bloodGroup_strict_match = TRUE,
  AB_priority = TRUE
)

Arguments

recip_matrix

a data.frame, this is the input recipient matrix

donor_matrix

a data.frame, this is the input donor matrix

threshold_number

a numerical value between 0 and 1, this is the threshold number we would like to use for matching

whichdonor

a categorical donor id, this is the incoming kidney from one donor

bloodGroup_strict_match

a boolean value, TRUE/FALSE, this is to define whether we want the strict match for bloodgroup or not

AB_priority

a boolean value, TRUE/FALSE, this is to define whether AB group can get from other blood group or not

Value

a data.frame contains eligible recipients

Examples

data("rawdata", package = "simKAP") rawdata$donor_rank = rank(rawdata[,'donor_kdri']) / nrow(rawdata) rawdata$recip_tx_date=rawdata$tx_date selectionpool2.2 <- selection_corisk(rawdata,rawdata,threshold_number = 0.1, whichdonor=1,bloodGroup_strict_match = TRUE,AB_priority = TRUE);