README.md

R build status CRAN Status Project Status: Active – The project has reached a stable, usable state and is being actively developed.

bode

R package for the BODE (body-mass index, airflow obstruction, dyspnea, and excercise capacity index) index: predicts the risk of death from any and respiratory causes in COPD patients described in https://www.nejm.org/doi/full/10.1056/nejmoa021322.

Installation

You can download the latest development version from GitHub:

install.packages("remotes")
remotes::install_github("resplab/bode")

BODE Index

To get BODE index, you will need to pass in patient's risk factors. For example:

library(bode)
bode (FEV1 = 40, mMRC = 3, BMI = 22, walk = 100)

The BODEindex() function returns score with possible values range from 0 to 10, with higher scores indicating a higher risk of death from any and respiratory causes in COPD patients.

Cloud-based API Access

The PRISM platform allows users to access BODEindex through the cloud. A MACRO-enabled Excel-file can be used to interact with the model and see the results. To download the PRISM Excel template file for BODEindex please refer to the PRISM model repository.

Linux

In Ubuntu, you can call the API with curl:

curl \
-X POST \
-H "x-prism-auth-user: REPLACE_WITH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"func":["prism_model_run"],"model_input":[{"FEV1": 40,"mMRC": 3,"BMI": 22,"walk": 100}]}' \
https://prism.peermodelsnetwork.com/route/bode/run

Citation

Please cite:

Celli, B. R., Cote, C. G., Marin, J. M., Casanova, C., Montes de Oca, M., Mendez, R. A., ... & Cabral, H. J. (2004). The body-mass index, airflow obstruction, dyspnea, and exercise capacity index in chronic obstructive pulmonary disease. New England Journal of Medicine, 350(10), 1005-1012.


resplab/bode documentation built on June 27, 2020, 9:01 a.m.