pred_JRS | R Documentation |
This function calculates the mean normal (predicted) values for the various spirometry parameters, using the JRS (Japanese Respiratory Society 2014) equations. It accepts as input age, height and gender.
pred_JRS(age, height, gender = 1, param = "FEV1")
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", "VC", "FEV1FVC" |
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.
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.
# Find predicted FEV1 and FVC for women aged 20 to 70 and with a height of 1.70 meters.
pred_JRS(20:70, 1.7, 2, param=c("FEV1","FVC"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.