australia_state_selection.RdAustralia_state_selectionpool
australia_state_selection( recip_matrix, donor_matrix, whichdonor, bloodGroup_strict_match = TRUE )
| recip_matrix | a data.frame with recipient features, this is the input recipient matrix |
|---|---|
| donor_matrix | a data.frame with recipient features, 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 |
a data.frame representing recipient pool under the state allocation tule
data("rawdata", package = "simKAP") state_pool <- australia_state_selection(rawdata,rawdata,"D948826", bloodGroup_strict_match = TRUE);