The goal of ado is to calculate the ADO index in COPD.
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("resplab/ado")
This is a basic example which calculate the ADO index, which is a scored being used to predict 3-year overall mortality among COPD patients. The individual has 65% forced expiratory volume in one second (FEV1), the dyspnea scale of modified Medical Research Council (mMRC) 1, and age 41 years old. He/she would have ADO score 0.
library(ado)
ado(fev=65, mmrc=1, age=41)
$ado_index
[1] 0