raw_GLIgl: Convert z-scores back to raw spirometric values using GLI global (2022) equations
Description
This function takes z-scores based on the GLI global (2022) equations,
plus demographic data (age, height and gender), and converts them back
into absolute spirometry measurements (FEV1, FVC, or FEV1FVC) in lt.
If only one spirometry z-score argument is supplied, the function
returns a numeric vector. If more are supplied, the function returns
a data.frame with the same number of 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.
FEV1
Forced Expiratory Volume in 1 second (z-score)
FVC
Forced Vital Capacity (z-score)
FEV1FVC
FEV1 / FVC (as z-score)
Details
At least one of the spirometric z-score arguments must be set (i.e. be
non-NULL). Arguments age, height and gender
must be vectors of length equal to the length of the
z-score vector(s), or of length one, in which case their value is recycled.
If any input vector is not of equal length, the function stops with an error.