state_balance.Rdthis is the function to obtain the number of kidneys allocated to another state
state_balance(SimResults, recip_matrix = NULL, donor_matrix = NULL)
| 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 |
a vector, which contains all the kidneys allocated to another state