Description Usage Arguments Details Value Examples

This function calculates LLNs (Lower Limits of Normal) for the various spirometry parameters, using the GLI-2012 equations. It accepts as input age, height, gender and ethnicity.

1 |

`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. |

`ethnicity` |
Ethnicity (1 = Caucasian, 2 = African-American, 3 = NE Asian, 4 = SE Asian, 5 = Other/mixed). Default is 1. |

`param` |
A character vector, containing one of more of the following parameters (case insensitive): "FEV1", "FVC", "FEV1FVC", "FEF2575", "FEF75", "FEV075", "FEV075FVC" |

Arguments `age`

, `height`

, `gender`

and `ethnicity`

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.

If `param`

has length one, the function returns a numeric vector. If `param`

has length >1, it returns a data.frame with `length(param)`

columns.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.