getLMS_GLIdiff {rspiro} | R Documentation |
Calculate L,M,S of GLI diffusing capacity (2017) equations
Description
This function calculates the L,M,S using the GLI diffusing capacity (2017, corrected 2020) equations (Stanojevic et al, Eur Respir J 2017). The output of this function is used in calculating LLN and predicted values for TLCO (transfer factor of the lung for carbon monoxide), KCO (transfer coefficient of the lung for carbon monoxide) and VA (alveolar volume). Checking of the input is also performed here.
Usage
getLMS_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
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