The goal of dose is to calculate the DOSE index in COPD.
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("resplab/dose")
This is a basic example which calculate the DOSE index, which is a derivation and validation of a composite index of severity in Chronic Obstructive Pulmonary Disease (COPD). The individual has the dyspnea scale of modified Medical Research Council (mMRC) 0, 55% forced expiratory volume in one second (FEV1), is a smoker, and had two exacerbations over the previous year. He/she would have DOSE score 2.
library(dose)
dose(mmrc=0, fev=55, smoking_status=1, exacerbation=2)
$dose_index
[1] 2