ric: donor-recipient Risk Index Combination

View source: R/uk.R

ricR Documentation

donor-recipient Risk Index Combination

Description

computes Risk Index Combination for each pair donor-recipient

Usage

ric(
  DRI = "D1",
  data = candidates.uk,
  D1R1 = 1000,
  D1R2 = 700,
  D1R3 = 350,
  D1R4 = 0,
  D2R1 = 700,
  D2R2 = 1000,
  D2R3 = 500,
  D2R4 = 350,
  D3R1 = 350,
  D3R2 = 500,
  D3R3 = 1000,
  D3R4 = 700,
  D4R1 = 0,
  D4R2 = 350,
  D4R3 = 700,
  D4R4 = 1000,
  check.validity = TRUE
)

Arguments

DRI

Donor RisK Index group (env$valid.dris)

data

A data file with candidates information for UK transplant

D1R1

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D1R1

D1R2

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D1R2

D1R3

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D1R3

D1R4

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D1R4

D2R1

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D2R1

D2R2

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D2R2

D2R3

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D2R3

D2R4

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D2R4

D3R1

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D3R1

D3R2

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D3R2

D3R3

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D3R3

D3R4

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D3R4

D4R1

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D4R1

D4R2

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D4R2

D4R3

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D4R3

D4R4

A numeric value (env$dirj.minimum - env$dirj.maximum) for the combination of indexes D4R4

check.validity

Logical to decide whether to validate input.

Value

A tibble with a new column 'ric' that gives the Risk Index Combination.

Examples

ric(DRI = 'D1', data = candidates.uk,
D1R1 = 1000, D1R2 = 700, D1R3 = 350, D1R4 = 0,
D2R1 = 700, D2R2 = 1000, D2R3 = 500, D2R4 = 350,
D3R1 = 350, D3R2 = 500, D3R3 = 1000, D3R4 = 700,
D4R1 = 0, D4R2 = 350, D4R3 = 700, D4R4 = 1000, check.validity = TRUE)

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