Learn R Programming

rspiro - Spirometry equations for R

Package rspiro implements multiple spirometry equations: currently the GLI-2012 (Quanjer), race-neutral GLI global (2022) and NHANES III (Hankinson), with potentially more to be added later.

It offers user-friendly functions to calculate predicted or LLN (Lower Limit of Normal) values given demographic data, or to convert absolute spirometry values to percent (%) predicted or z-scores.

Installation

Open R, and give:

  devtools::install_github("thlytras/rspiro")

If you do not have the package "devtools", first install it from CRAN with:

  install.packages("devtools")

Acknowledgement

This package uses the lookup tables provided by the GLI initiative, to whom I'm grateful for their work.

Disclaimer

Although every effort has been made to verify correct operation of this software, I cannot accept any liability arising from its use. The software is provided "as is", without any express or implied warranty, and no implication of fitness for a particular use.

If you find any bugs, please open an issue or, alternatively, send me e-mail to thlytras@gmail.com

Copy Link

Version

Install

install.packages('rspiro')

Monthly Downloads

533

Version

0.4

License

GPL (>= 2)

Maintainer

Theodore Lytras

Last Published

August 7th, 2023

Functions in rspiro (0.4)

zscore_NHANES3

Convert spirometric values to z-scores using NHANES III equations
rspiro-package

rspiro: Brief overview of the package
raw_GLIgl

Convert z-scores back to raw spirometric values using GLI global (2022) equations
pred_NHANES3

Calculate predicted values of spirometry parameters using NHANES III equations
zscore_GLIgl

Convert spirometric values to z-scores using GLI global (2022) equations
zscore_GLI

Convert spirometric values to z-scores using GLI-2012 equations
raw_GLI

Convert z-scores back to raw spirometric values using GLI-2012 equations
rspiro_check_somat

Check somatometric input data
rspiro_check_input

Check input data for errors
LLN_GLIgl

Calculate LLN of spirometry parameters using GLI global (2022) equations
LLN_GLI

Calculate LLN of spirometry parameters using GLI-2012 equations
pred_GLI

Calculate predicted values of spirometry parameters using GLI-2012 equations
pred_GLIgl

Calculate predicted values of spirometry parameters using GLI global (2022) equations
getLMS_GLIgl

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

Calculate L,M,S of GLI-2012
pctpred_GLIgl

Convert spirometric values to % predicted using GLI global (2022) equations
pctpred_NHANES3

Convert spirometric values to % predicted using NHANES III equations
pctpred_GLI

Convert spirometric values to % predicted using GLI-2012 equations
LLN_NHANES3

Calculate predicted values of spirometry parameters using NHANES III equations