getLMS_GLIgl: Calculate L,M,S of race-neutral GLI global (2022) equations

View source: R/getLMS_GLIgl.R

getLMS_GLIglR Documentation

Calculate L,M,S of race-neutral GLI global (2022) equations

Description

This function calculates the L,M,S using the race-neutral GLI global (2022) equations (Bowerman et al, AJRCCM 2023). The output of this function is used in calculating the LLN and predicted spirometry parameters. Checking of the input is also performed here.

Usage

getLMS_GLIgl(age, height, gender = 1, param = "FEV1")

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

This is for internal use only.

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

A data.frame with L, M and S, for every patient and every parameter requested


rspiro documentation built on Aug. 7, 2023, 5:06 p.m.