pedbp

R package for working with pediatric blood pressures based on age and height

https://github.com/dewittpe/pedbp

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.5%) to scientific vocabulary

Keywords

blood-pressure growth-standards pediatric r r-package
Last synced: 6 months ago · JSON representation ·

Repository

R package for working with pediatric blood pressures based on age and height

Basic Info
Statistics
  • Stars: 6
  • Watchers: 3
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
blood-pressure growth-standards pediatric r r-package
Created almost 4 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Citation

README.Rmd

# pedbp : Pediatric Blood Pressure and Growth Standard Distributions 

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![R-CMD-check](https://github.com/dewittpe/pedbp/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dewittpe/pedbp/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/dewittpe/pedbp/branch/main/graph/badge.svg?token=DYiVkUwKrP)](https://app.codecov.io/gh/dewittpe/pedbp)

[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/pedbp)](https://cran.r-project.org/package=pedbp)
[![CRAN mirror downloads](https://cranlogs.r-pkg.org/badges/pedbp)](https://www.r-pkg.org/pkg/pedbp)
[![Total CRAN mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/pedbp)](https://www.r-pkg.org/pkg/pedbp)

[![License](https://img.shields.io/badge/licence-GPL--2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/)

## Objectives

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

2. Provide functions to get the percentiles for other growth standards.

## Citing pedbp

If you use this package in your research please cite the package
```{r, eval = FALSE}
citation("pedbp", auto = TRUE)
```

And the research letter:

```{r}
citation("pedbp")
```

## Methodology

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.  Growth standards are based on LMS
approximations.  All the methods get parameters based on lookup tables.

## Blood Pressure
There are several data sources used to inform the blood pressure percentiles
estimates:

1. Gemelli et al. (1990)
2. Lo et al. (2013)
3. NHLBI/CDC (2011)
4. Flynn et al. (2017)

The default method is to use the workflow defined in Martin, DeWitt, et al.
(2022).



End users may opt to use any single data source.

Example: A 28 month old female with a stature of 92 cm has a recorded blood
pressure of 95/50.  Find the percentiles.
```{r, results = "hide"}
library(pedbp)
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92)
```

Selecting the source data is also possible
```{r, results = "hide"}
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92, source = "martin2022")  # Default
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92, source = "gemelli1990")
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92, source = "lo2013")
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92, source = "nhlbi")
p_bp(q_sbp = 95, q_dbp = 50, male = 0, age = 28, height = 92, source = "flynn2017")
```

You can also find the quantile values.  Example: what is the SBP/DBP values for
the 42nd percentile of 13 year (156 month) old males in the 90th height percentile?
```{r, results = "hide"}
q_bp(p_sbp = 0.42, p_dbp = 0.42, age = 156, male = 1, height_percentile = 0.90)
```

More examples can be found in the vignette.
```{r, eval = FALSE}
vignette("bp-distributions", package = "pedbp")
```

## Growth Standards

Growth standards based on both CDC and WHO data are provided in this package.
Read more in the vignette
```{r, eval = FALSE}
vignette(topic = "growth-standards", package = "pedbp")
```

Growth standards implemented in the package are:
* `bmi_for_age`
* `head_circumference_for_age`
* Stature for Age
  * `height_for_age`
  * `length_for_age`
* `weight_for_age`
* Weight for Stature
  * `weight_for_length`
  * `weight_for_height`

```{r}
# Example: what is the percentile for a BMI of 23 in a 14.5 year old male?
p_bmi_for_age(q = 23, male = 1, age = 14.5*12, source = "CDC")
p_bmi_for_age(q = 23, male = 1, age = 14.5*12, source = "WHO")
```

## How to Install `pedbp`

Install from CRAN:

```{r, eval = FALSE}
install.packages("pedbp")
```

Install the developmental version:
```{r, eval = FALSE}
remotes::install_github("dewittpe/pedbp", dependencies = TRUE)
```

*NOTE:* If you are working on a Windows machine you will need to download and
install [`Rtools`](https://cran.r-project.org/bin/windows/Rtools/).

## Shiny Application

An interactive [Shiny](https://shiny.posit.co/) application is also available.
After installing the pedbp package and the suggested
packages, you can run the app locally via

```{r, eval = FALSE}
shiny::runApp(system.file("shinyapps", "pedbp", package = "pedbp"))
```

The shiny app is also live on [shinyapps.io](https://dewittpe.shinyapps.io/pedbp/)

## References

* Expert Panel On Integrated Guidelines For Cardiovascular Health and Risk Reduction in Children and Adolescents. 2011. “Expert Panel on Integrated Guidelines for Cardiovascular Health and Risk Reduction in Children and Adolescents: Summary Report.” Pediatrics 128 (Supplement_5): S213–56. https://doi.org/10.1542/peds.2009-2107C.

* Gemelli, M, R Manganaro, C Mami, and F De Luca. 1990. “Longitudinal Study of Blood Pressure During the 1st Year of Life.” European Journal of Pediatrics 149 (5): 318–20.

* Lo, Joan C, Alan Sinaiko, Malini Chandra, Matthew F Daley, Louise C Greenspan, Emily D Parker, Elyse O Kharbanda, et.al. 2013. “Prehypertension and Hypertension in Community-Based Pediatric Practice.” Pediatrics 131 (2): e415–24.

* Martin, Blake, Peter E. DeWitt, Scout HF, SK Parker, and Tellen D. Bennett. 2022. “Machine Learning Approach to Predicting Absence of Serious Bacterial Infection at PICU Admission.” Hospital Pediatrics.

* Flynn, Joseph T., David C. Kaelber, Carissa M. Baker-Smith, Douglas Blowey, Aaron E. Carroll, Stephen R. Daniels, Sarah D. De Ferranti et al. "Clinical practice guideline for screening and management of high blood pressure in children and adolescents." Pediatrics 140, no. 3 (2017).

Owner

  • Name: Peter DeWitt
  • Login: dewittpe
  • Kind: user
  • Location: Colorado, USA
  • Company: University of Colorado Anschutz Medical Campus

Ph.D. Biostatistician, R Enthusiast.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "DeWitt"
  given-names: "Peter"
  orcid: "https://orcid.org/0000-0002-6391-0795"
- family-names: "Martin"
  given-names: "Blake"
  orcid: "https://orcid.org/0000-0001-5683-8310"
- family-names: "Albers"
  given-names: "David"
  orcid: "https://orcid.org/0000-0002-5369-526X"
- family-names: "Bennett"
  given-names: "Tell"
  orcid: "https://orcid.org/0000-0003-1483-4236"
title: "Pediatric Blood Pressue"
url: "https://github.com/dewittpe/pedbp"
preferred-citation:
  type: article
  authors:
  - family-names: "DeWitt"
    given-names: "Peter"
    orcid: "https://orcid.org/0000-0002-6391-0795"
  - family-names: "Martin"
    given-names: "Blake"
    orcid: "https://orcid.org/0000-0001-5683-8310"
  - family-names: "Albers"
    given-names: "David"
    orcid: "https://orcid.org/0000-0002-5369-526X"
  - family-names: "Bennett"
    given-names: "Tell"
    orcid: "https://orcid.org/0000-0003-1483-4236"
  doi: "10.1001/jamanetworkopen.2022.36918"
  journal: "JAMA Network Open"
  month: 10
  start: e2236918 # First page number
  end: e2236918 # Last page number
  title: "Development of a Pediatric Blood Pressure Percentile Tool for Clinical Decision Support"
  issue: 10
  volume: 5
  year: 2022

GitHub Events

Total
  • Issues event: 2
  • Delete event: 3
  • Issue comment event: 2
  • Push event: 10
  • Create event: 5
Last Year
  • Issues event: 2
  • Delete event: 3
  • Issue comment event: 2
  • Push event: 10
  • Create event: 5

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 351
  • Total Committers: 2
  • Avg Commits per committer: 175.5
  • Development Distribution Score (DDS): 0.003
Past Year
  • Commits: 198
  • Committers: 1
  • Avg Commits per committer: 198.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Peter DeWitt p****t@c****u 350
Tell Bennett t****t 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 16
  • Total pull requests: 7
  • Average time to close issues: about 2 months
  • Average time to close pull requests: about 20 hours
  • Total issue authors: 4
  • Total pull request authors: 1
  • Average comments per issue: 0.81
  • Average comments per pull request: 0.57
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 1 day
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dewittpe (13)
  • teunbrand (1)
  • wenlunyuan (1)
  • tdbennett (1)
Pull Request Authors
  • dewittpe (11)
Top Labels
Issue Labels
enhancement (9) documentation (6) bug (3)
Pull Request Labels
enhancement (7) documentation (2)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 330 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: pedbp

Pediatric Blood Pressure

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 330 Last month
Rankings
Stargazers count: 24.2%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 33.6%
Dependent repos count: 35.5%
Downloads: 49.6%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • ggplot2 * imports
  • scales * imports
  • DT * suggests
  • covr * suggests
  • data.table * suggests
  • gridExtra * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • shiny * suggests
  • shinydashboard * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite