pft_volumes() computes ATS-compliant upper and lower normal limits
for lung volume measures including FRC, TLC, RV, ERV, IC, and VC.
Arguments
- data
A data frame containing columns for sex ("M","F"), age (in years, in the range 5-80 per the GLI 2021 spline tables) and height (in centimeters). If
dataalso contains any offrc_measured,tlc_measured,rv_measured,rv_tlc_measured,erv_measured,ic_measured,vc_measured, the corresponding measured value is used to compute a z-score and percent-predicted (see Value).- sex, age, height
Column references for sex (
"M"/"F"), age (years), and height (centimetres). By defaultpft_volumes()reads fromsex,age, andheight. Override via a bare name (sex = Sex), a string (sex = "Sex"), or an rlang injection (sex = !!my_var). The user's original column names are preserved in the output. See "Demographic input columns" for accepted values.
Value
The original data frame with extra columns appended for each measure:
<measure>_pred: predicted (median) value.<measure>_lln: lower limit of normal (5th percentile).<measure>_uln: upper limit of normal (95th percentile). If a<measure>_measuredcolumn was supplied indata, two additional columns are emitted:<measure>_zscore: LMS z-score((measured/M)^L - 1) / (L*S).<measure>_pctpred: percent predicted(measured / pred) * 100.
Demographic input columns
Read from the columns named by the sex, age, and height
arguments (by default the columns with those names). Values must
already be in the units below. pft does not detect or convert
units.
sex(character):"M"or"F". Case and whitespace variants, and"male"/"man"/"boy"/"female"/"woman"/"girl", are normalised to"M"/"F"with a warning. Unrecognised values becomeNA, with a warning.age(numeric): years; decimals allowed. Reference values are computed for ages 5-80; rows outside that range getNA.height(numeric): centimetres.
Rows with NA in a demographic column get NA reference values.
A height entered in metres or inches is not caught: it produces
near-zero or otherwise meaningless reference values with no error.
pft does not screen inputs for physiologic plausibility.
See vignette("input-format") for the full input specification,
including units for the <measure>_measured columns.
Applicability (source population)
The GLI 2021 static lung-volume equations were derived from 7,190
observations from participants of European ancestry aged 5-80
years; data from non-European ancestry populations were insufficient
to develop multi-ethnic equations (Hall et al. 2021). The source
authors note that it is not clear whether these equations are
appropriate for people of non-European ancestry. The race-neutral
GLI Global 2022 spirometry equations available in pft_spirometry()
do not make these lung-volume equations race-neutral or
multi-ethnic. Users should consider whether the source reference
population is appropriate for the population under study before
interpreting outputs. Ages outside the 5-80 year spline range
return NA reference values.
References
Hall GL, Filipow N, Ruppel G, et al. Official ERS technical standard: Global Lung Function Initiative reference values for static lung volumes in individuals of European ancestry. Eur Respir J. 2021;57(3):2000289. doi:10.1183/13993003.00289-2020 .
See also
pft_spirometry() and pft_diffusion() for the analogous
reference-value functions. pft_classify() uses TLC and its LLN
(produced by this function) to identify restrictive impairments.
pft_interpret() composes all three reference functions in one
call.
Examples
data <- data.frame(sex=c("M","F"),
age=c(30,5.1),
height=c(178,50))
pft_volumes(data)
#> # A tibble: 2 × 24
#> sex age height frc_pred frc_lln frc_uln tlc_pred tlc_lln tlc_uln rv_pred
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 M 30 178 3.31 2.25 4.65 7.13 5.73 8.56 1.52
#> 2 F 5.1 50 0.0948 0.0640 0.135 0.247 0.192 0.308 0.182
#> # ℹ 14 more variables: rv_lln <dbl>, rv_uln <dbl>, rv_tlc_pred <dbl>,
#> # rv_tlc_lln <dbl>, rv_tlc_uln <dbl>, erv_pred <dbl>, erv_lln <dbl>,
#> # erv_uln <dbl>, ic_pred <dbl>, ic_lln <dbl>, ic_uln <dbl>, vc_pred <dbl>,
#> # vc_lln <dbl>, vc_uln <dbl>
