dm_national_top.Rdthis is the sdm2
dm_national_top( recip_matrix = NULL, donor_matrix = NULL, allocation_score = NULL, HLA = NULL, graft_number = 1, parameter_a = 1, parameter_b = 1, bloodgroup = 1.5, age = 1.5, parameter_state = 20, top_matches = 15 )
| 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 |
| parameter_a | an integer hyperparameter to tune |
| parameter_b | an integer hyperparameter to tune |
| bloodgroup | a boolean value, TRUE/FALSE, blood group indicator |
| age | a boolean value, TRUE/FALSE, age indicator |
| parameter_state | an integer, state parameter |
| top_matches | an integer, top match parameter |
a data.frame with matched recipient
data("newdata", package = "simKAP") HLA_matrix <- hla_match(raw_recip_matrix_subset, raw_donor_matrix[1,]) selected <- dm_national_top(raw_recip_matrix_subset,raw_donor_matrix[1,], allocation_score=allocation_national(raw_recip_matrix_subset,raw_donor_matrix[1,],HLA_matrix), HLA_matrix,1,1,1,1.5,1.5,20,15);