this is the function to obtain the number of kidneys allocated to another state

state_balance(SimResults, recip_matrix = NULL, donor_matrix = NULL)

Arguments

SimResults

a data.frame, this is the current simulation results

recip_matrix

a data.frame, this is the recipient matrix

donor_matrix

a data.frame, this is the donor vector

Value

a vector, which contains all the kidneys allocated to another state

Examples

data("rawdata", package = "simKAP") data("newdata", package = "simKAP") state_balance <- state_balance(rawdata,raw_recip_matrix_subset,raw_donor_matrix[1,]);