this is the Australia current national recipient selection pool

selection_default(
  recip_matrix,
  donor_matrix,
  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

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) selectionpool1.2 <- selection_default(rawdata,rawdata,1, bloodGroup_strict_match = TRUE,AB_priority = TRUE);