predict_FEV1: Predict FEV1 based on Global Lungs Initiative

View source: R/predict_FEV1.R

predict_FEV1R Documentation

Predict FEV1 based on Global Lungs Initiative

Description

This function computes predicted FEV1 from the ERS Global Lung Initiative function (Eur Resp J 2012 40:1324-43)

Usage

predict_FEV1(age, height, race, sex, fev1 = NA)

Arguments

age

age in years (ages 25-95)

height

height in centimeters

race

1=African American (AA), 2=North East Asian (NEA), 3=South East Asian (SEA) or 4=other (O)

sex

0=female/1=male

fev1

measured FEV1 (optional). If provided, Z-score and percent predicted will be computed

Value

vector of predicted FEV1, coefficient of variation, skewness, lower limit normal, Z-score (if fev1 is provided), percent predicted FEV1 (if fev1 is provided)

Examples


age <- c(4.8, 12.2, 53, 39.1)
height <- c(107, 152, 175, 165)
race <- c("o", "aa", "SEA", "SEA")
sex <- c("M", "M", "M", "F")
fev1 <- c(0.8, 2.405, 2.410, 2.210)

predict_FEV1(age, height, race, sex, fev1)


venkmurthy/vmtools documentation built on Oct. 16, 2024, 10:48 a.m.