select_max.Rdthis is the max selection function
select_max( recip_matrix = NULL, donor_matrix = NULL, allocation_score, HLA = NULL, graft_number = 1 )
| recip_matrix | a data.frame with recipient features, this is the input recipient matrix |
|---|---|
| donor_matrix | a data.frame with donor features, this is the input donor matrix |
| allocation_score | a vector, this is the score for each pair |
| HLA | a matrix, this is the calculated HLA mismatching counts matrix |
| graft_number | a numerical value, this is the graft number |
a matrix contains allo_score, which is the alocation score for each new pair
data("rawdata", package = "simKAP") selected <- select_max(allocation_score=allocation_national(rawdata,rawdata,rawdata), graft_number = 1);