LLN_GLIdiff {rspiro} | R Documentation |
Calculate LLN of diffusing capacity parameters using GLI (2017) equations
Description
This function calculates LLNs (Lower Limits of Normal) for TLCO (transfer factor of the lung for carbon monoxide), KCO (transfer coefficient of the lung for carbon monoxide) and VA (alveolar volume) using the GLI (2017) equations. It accepts as input age, height, gender.
Usage
LLN_GLIdiff(age, height, gender = 1, param = "TLCO", SI = TRUE)
Arguments
age |
Age in years |
height |
Height in meters |
gender |
Gender (1 = male, 2 = female) or a factor with two levels (first = male). Default is 1. |
param |
A character vector, containing one of more of the following parameters (case insensitive): "TLCO", "KCO" or "VA" |
SI |
(default TRUE) Use SI (mmol/min/kPa) or traditional (ml/min/mmHg) units? |
Details
Arguments age
, height
and gender
are vectors
of equal length, or of length one, in which case the value is recycled; if the four vectors are
not of equal length, the function stops with an error.
Value
If param
has length one, the function returns a numeric vector. If param
has length >1, it returns a data.frame with length(param)
columns.
Examples
# Find LLN of TLCO and VA for women aged 20 to 70 and with a height of 1.70 meters.
LLN_GLIdiff(20:70, 1.7, 2, param=c("TLCO","VA"))