pt: Matching punctuation' according to 2007 PT's algorithm

View source: R/pt.R

ptR Documentation

Matching punctuation' according to 2007 PT's algorithm

Description

Ordering of waitlisted candidates for a given donor and according to PT's algorithm.

Usage

pt(
  iso = TRUE,
  dABO = "O",
  dA = c("1", "2"),
  dB = c("15", "44"),
  dDR = c("1", "4"),
  donor.age = 65,
  df.abs = cabs,
  data = candidates,
  points.80 = 8,
  points.50 = 4,
  points.dialysis = 0.1,
  points.age = 4,
  n = 2,
  check.validity = TRUE
)

Arguments

iso

A logical value for isogroupal compatibility.

dABO

A character value with ABO blood group (env$valid.blood.groups).

dA

donor's HLA-A typing.

dB

donor's HLA-B typing.

dDR

donor's HLA-DR typing.

donor.age

A numeric value with donor's age.

df.abs

A data frame with candidates' antibodies.

data

A data frame containing demographics and medical information for a group of waitlisted transplant candidates with color priority classification.

points.80

A numerical value (env$pt.points.minimum - env$pt.points.maximum) for the points to a cPRA >= 80

points.50

A numerical value (env$pt.points.minimum - env$pt.points.maximum) for the points to a cPRA >= 50

points.dialysis

punctuaction for each month on dialysis

points.age

A numerical value for the points to age difference

n

A positive integer to slice the first candidates.

check.validity

Logical to decide whether to validate input.

Value

An ordered data frame with a column 'cp' (color priority), 'sp', 'hi' and 'mmHLA'.

Examples

pt(iso = TRUE, dABO = "A",
dA = c("1","2"), dB = c("15","44"), dDR = c("1","4"),
donor.age = 65,  data = candidates,
df.abs = cabs, n = 2)

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