quantile_check: Calculate 1st or 3rd quantile for a given biomarker

Description Usage Arguments Value

View source: R/BHS.R

Description

Given a column (biomarker), reference look-up table and dataset (biomarker dataset) this function calculates the 1st quartile if the given biomarker is considered bad in shortage or the 3rd quartile if the given biomarker is considered bad in excess

Usage

1
quantile_check(column, reference, dataset)

Arguments

column

biomarker name ["string"] from biomarker data frame, needs to match one name in the reference look up table

reference

Reference "grading" to be taken from the look-up table (possible values: "Mantej", "Paper", "Barbara")

dataset

Biomarker data frame where quantiles will be calculated, this may be the whole data frame or a subset of it as it is done internally in the BHS calculator when doing stratified BHS calculation

Value

quartile value for given biomarker, reference and dataset as well as type of quartile nuber (1st or 3rd)


lc5415/HDATDS documentation built on April 27, 2020, 6:04 a.m.