LLN_GLIgl: Calculate LLN of spirometry parameters using GLI global (2022) equations
Description
This function calculates LLNs (Lower Limits of Normal) for the various spirometry
parameters, using the GLI global (2022) equations.
It accepts as input age, height, gender.
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.
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):
"FEV1", "FVC", "FEV1FVC"
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.