kdpi_lookup: US KDPI lookup function

Description Usage Arguments Details Value Examples

View source: R/uskdri.R

Description

A vectorised function to convert kdri KDRI scores to KDPI percentiles. If the OPTN scaling factor was not used when calculating the KDRI, it can be set here using the optional scaling parameter which uses a default value of 1 (for no scaling).

Usage

1
kdpi_lookup(kdri, scaling = 1)

Arguments

kdri

numeric vector of KDRI values

scaling

optional parameter for scaling factor (default is 1)

Details

This function requires the dplyr package to be installed.

Value

numeric vector of KDPI percentiles

Examples

1
2
3
4
5
# if scaling factor was used when calculating KDRI
kdpi_lookup(1.25)

# if scaling factor for 2018 needs to be applied
kdpi_lookup(1.25, scaling =  1.2506957544151)

transplantr documentation built on Feb. 28, 2020, 5:07 p.m.