cp: Candidates' Color Priority

View source: R/utility.R

cpR Documentation

Candidates' Color Priority

Description

Classification of candidates according to waiting list time on dialysis' quartiles and two cPRA cutoff values.

Usage

cp(data = candidates, q2 = 60, q3 = 100, cPRA1 = 50, cPRA2 = 85)

Arguments

data

A data frame with information for candidates' waiting list.

q2

A numerical value for the median of candidates' waiting list (env$q.minimum - env$q.maximum).

q3

A numerical value for the third quartile of candidates' waiting list (env$q.minimum - env$q.maximum).

cPRA1

A numerical value (env$percentage.maximum - env$percentage.maximum) for the lower cPRA cutoff.

cPRA2

A numerical value (env$percentage.maximum - env$percentage.maximum) for the higher cPRA cutoff. cPRA2 must be greater than cPRA1.

Value

A data frame with a new column 'cp' (color priority)

Examples

cp(data = candidates, q2 = 60, q3 = 100, cPRA1 = 50, cPRA2 = 85)

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