donor_recipient_pairs | R Documentation |
Ordering of waitlisted candidates for a given donor and according to any algorithm.
donor_recipient_pairs( df.donors = donors, df.candidates = candidates, df.abs = cabs, algorithm = lima, n = 2, check.validity = TRUE, ... )
df.donors |
A data frame containing demographics and medical information for a poll of donors. For uk algorithm must have respective columns. |
df.candidates |
A data frame containing demographics and medical information for a group of waitlisted transplant candidates. For uk algorithm must have respective columns. |
df.abs |
A data frame with candidates' antibodies. |
algorithm |
The name of the function to use. Valid options are: lima, et, pt, uk (without quotation) |
n |
A positive integer to slice the first candidates. |
check.validity |
Logical to decide whether to validate input. |
... |
all the parameters used on the function algorithm |
A list with the number of elements equal to the number of rows on donors data frame. Each element have a data frame with select candidates by donor.
donor_recipient_pairs(df.donors = donors, df.candidates = candidates, df.abs = cabs, algorithm = lima, n = 2, check.validity = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.