donor_recipient_pairs: Candidates' selection according to any algorithm for multiple...

View source: R/mult.R

donor_recipient_pairsR Documentation

Candidates' selection according to any algorithm for multiple donors

Description

Ordering of waitlisted candidates for a given donor and according to any algorithm.

Usage

donor_recipient_pairs(
  df.donors = donors,
  df.candidates = candidates,
  df.abs = cabs,
  algorithm = lima,
  n = 2,
  check.validity = TRUE,
  ...
)

Arguments

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

Value

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.

Examples

donor_recipient_pairs(df.donors = donors,
df.candidates = candidates,
df.abs = cabs,
algorithm = lima,
n = 2,
check.validity = TRUE)

FilipePintoReis/KARS_project documentation built on July 11, 2022, 9:19 a.m.