-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
147 lines (107 loc) · 5.96 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# pedbp : Pediatric Blood Pressure and Growth Standard Distributions <img src="man/figures/pedbplogo.png" align="right" width="150px"/>
[![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).
<img src="man/figures/flowchart.png"/>
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).