pedbp : Pediatric Blood Pressure

An R package for estimating expected blood pressure of children and adolescences

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check codecov

CRAN_Status_Badge CRAN RStudio mirror downloads CRAN RStudio mirror downloads

License minimal R version

Objective

Provide a method for translating pediatric blood pressures, dependent on age, sex, and height (if known), to percentiles.

Publications

If you use this package in your research please cite it via:

Martin B, DeWitt PE, Albers D, Bennett TD. Development of a Pediatric Blood Pressure Percentile Tool for Clinical Decision Support. JAMA Netw Open. 2022;5(10):e2236918. doi:10.1001/jamanetworkopen.2022.36918

citation("pedbp")
## 
## To cite pedbp please cite the research letter
## 
##   Martin B, DeWitt PE, Albers D, Bennett TD. Development of a Pediatric
##   Blood Pressure Percentile Tool for Clinical Decision Support. JAMA
##   Netw Open. 2022;5(10):e2236918.
##   doi:10.1001/jamanetworkopen.2022.36918
## 
## A BibTeX entry for LaTeX users is
## 
##   @Article{,
##     author = {{Martin} and {Blake} and {DeWitt} and Peter E. and {Albers} and {David} and {Bennett} and Tellen D.},
##     title = {Development of a Pediatric Blood Pressure Percentile Tool for Clinical Decision Support},
##     journal = {JAMA Network Open},
##     volume = {5},
##     number = {10},
##     pages = {e2236918-e2236918},
##     year = {2022},
##     month = {10},
##     issn = {2574-3805},
##     doi = {10.1001/jamanetworkopen.2022.36918},
##     url = {https://doi.org/10.1001/jamanetworkopen.2022.36918},
##     eprint = {https://jamanetwork.com/journals/jamanetworkopen/articlepdf/2797401/martin_2022_ld_220236_1665075001.39453.pdf},
##   }

Method

Blood pressure percentiles are based on Gaussian distributions defined by published values for the mean and standard deviation, or derived mean and standard deviations based on published percentiles.

How to Install

Install from CRAN:

install.packages("pedbp")

Install the developmental version:

remotes::install_github("dewittpe/pedbp", dependencies = TRUE)

Tools

Blood Pressure Distribution and Quantile Functions

Inputs for these functions are:

d <- read.csv(system.file("example_data", "for_batch.csv", package = "pedbp"))
d
##           pid age_months male height..cm. sbp..mmHg. dbp..mmHg.
## 1   patient_A         96    1          NA        102         58
## 2   patient_B        144    0         153        113         NA
## 3   patient_C          4    0          62         82         43
## 4 patient_D_1         41    1          NA         96         62
## 5 patient_D_2         41    1         101         96         62
# distribution function
p_bp(  q_sbp  = d$sbp..mmHg.
     , q_dbp  = d$dbp..mmHg.
     , age    = d$age_months
     , male   = d$male
     , height = d$height..cm.
     )
## $sbp_percentile
## [1] 0.5533069 0.7680548 0.2622697 0.6195685 0.6101926
## 
## $dbp_percentile
## [1] 0.4120704        NA 0.1356661 0.8028518 0.9011263
# quantile function
q_bp(  p_sbp = 0.50
     , p_dbp = 0.40
     , age   = 96
     , male  = 1)
## $sbp
## [1] 100.7
## 
## $dbp
## [1] 57.74789

Plots show where an observed blood pressure is on the distribution curve

bp_cdf(  sbp = 105
       , dbp = 59
       , age   = 96
       , male  = 1)
plot of chunk bp_cdf_example

More examples and details for the blood pressure distribution functions, along with additional features such as CDC growth charts, can be found in the package vignette.

vignette("bp-distributions", package = "pedbp")

Shiny Application

An interactive Shiny application is also available. After installing the pedbp package and the suggested packages, you can run the app locally via

shiny::runApp(system.file("shinyapps", "pedbp", package = "pedbp"))

The shiny app is also live on shinyapps.io

References