Skip to content

Commit aea2631

Browse files
authored
Merge pull request #137 from carriedaymont/upd-v3
Update preliminary infants algorithm to main
2 parents 9b61b27 + 6cb6fa9 commit aea2631

File tree

89 files changed

+4884
-464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+4884
-464
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
# produced vignettes
2121
vignettes/*.html
22-
vignettes/*.pdf
2322

2423
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
2524
.httr-oauth

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: growthcleanr
22
Type: Package
33
Title: Data Cleaner for Anthropometric Measurements
4-
Version: 2.1.1
4+
Version: 2.2.0
55
Authors@R: c(
66
person("Carrie", "Daymont", email = "cdaymont@pennstatehealth.psu.edu", role = c("ctb","cre")),
77
person("Robert", "Grundmeier", role = "aut"),

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import(parallel)
2323
import(plyr, except = c(failwith, id, summarize, count, desc, mutate, arrange, rename, is.discrete, summarise, summarize))
2424
import(tidyr, except = extract)
2525
importFrom(stats,approx)
26+
importFrom(stats,embed)
2627
importFrom(stats,median)
2728
importFrom(stats,pnorm)
2829
importFrom(stats,qnorm)

NEWS.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# growthcleanr 2.2.0-prelim-infants - 2023-09-13
2+
3+
## Added
4+
5+
- Added option to cleangrowth for the preliminary infants algorithm -- expands pediatric algorithm to consider 0 - 2 years old, with infants = TRUE in cleangrowth(), with all steps implemented. Note that this option is still preliminary and should not be used for research. For more information regarding the logic of the algorithm, see the vignette 'Preliminary Infants Algorithm.'
6+
7+
8+
# growthcleanr 3.0.0-infants-beta - 2023-03-13
9+
10+
## Added
11+
12+
- Added the infants beta release algorithm -- expands pediatric algorithm to consider 0 - 2 years old, with infants = TRUE in cleangrowth()
13+
- Updated velocity data for the extension (#122)
14+
115
# growthcleanr 2.1.1 - 2023-03-01
216

317
## Changed

R/extdata.R

+120
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,36 @@ NULL
2828
#'
2929
NULL
3030

31+
#' CDC Growth Percentile Table for Infants
32+
#'
33+
#' Part of default CDC-derived tables
34+
#'
35+
#' Contains percentiles for various ages, gender, and weights, pre-calculated by CDC for infants algorithm
36+
#'
37+
#' @name growth_cdc_ext_infants
38+
#'
39+
#' @section growthfile_cdc_ext_infants.csv.gz:
40+
#'
41+
#' Used in function `cleangrowth()`
42+
#'
43+
#'
44+
NULL
45+
46+
#' WHO Growth Percentile Table
47+
#'
48+
#' Part of default WHO-derived tables
49+
#'
50+
#' Contains percentiles for various ages, gender, and weights, pre-calculated by WHO
51+
#'
52+
#' @name growth_who_ext
53+
#'
54+
#' @section growthfile_who.csv.gz:
55+
#'
56+
#' Used in function `cleangrowth()`
57+
#'
58+
#'
59+
NULL
60+
3161
#' Length to Age Table
3262
#'
3363
#' Part of default CDC-derived tables
@@ -43,6 +73,20 @@ NULL
4373
#'
4474
NULL
4575

76+
#' Infants reference medians
77+
#'
78+
#' Contains reference median values for default recentering in the infants
79+
#' algorithm
80+
#'
81+
#' @name rc-reference-medians
82+
#'
83+
#' @section rcfile-2023-08-15_format.csv.gz:
84+
#'
85+
#' Used in function `cleangrowth()`
86+
#'
87+
#'
88+
NULL
89+
4690
#' NHANES reference medians
4791
#'
4892
#' Contains reference median values for default recentering, derived from NHANES
@@ -72,6 +116,22 @@ NULL
72116
#'
73117
NULL
74118

119+
#' Tanner Growth Velocity Table for Infants
120+
#'
121+
#' Part of default CDC-derived tables
122+
#'
123+
#' Contains velocities for growth pre-calculated by CDC, used for the infants
124+
#' algorithm
125+
#'
126+
#' @name tanner_ht_vel_rev
127+
#'
128+
#' @section tanner_ht_vel_rev.csv.gz:
129+
#'
130+
#' Used in function `cleangrowth()`
131+
#'
132+
#'
133+
NULL
134+
75135
#' Tanner Growth Velocity Table with (2\eqn{\sigma})
76136
#'
77137
#' Part of default CDC-derived tables
@@ -167,6 +227,38 @@ NULL
167227
#'
168228
NULL
169229

230+
#' WHO Maximum Head Circumference Velocity for (3\eqn{\sigma})
231+
#'
232+
#' Part of default WHO-derived tables
233+
#'
234+
#' Contains three standard deviations for the World Health Organization values of
235+
#' maximum head circumference velocities.
236+
#'
237+
#' @name who_hc_maxvel
238+
#'
239+
#' @section who_hc_maxvel_3sd_infants.csv.gz:
240+
#'
241+
#' Used in function `cleangrowth()`
242+
#'
243+
#'
244+
NULL
245+
246+
#' WHO Head Circumference Velocity for (3\eqn{\sigma})
247+
#'
248+
#' Part of default WHO-derived tables
249+
#'
250+
#' Contains three standard deviations for the World Health Organization values of
251+
#' head circumference velocities.
252+
#'
253+
#' @name who_hc_vel_3sd
254+
#'
255+
#' @section who_hc_vel_3sd_infants.csv.gz:
256+
#'
257+
#' Used in function `cleangrowth()`
258+
#'
259+
#'
260+
NULL
261+
170262
#' CDC SAS BMI Input
171263
#'
172264
#' Contains input data for CDC SAS macro for calculating BMI values.
@@ -205,3 +297,31 @@ NULL
205297
#'
206298
#'
207299
NULL
300+
301+
#' Fenton Growth Curves
302+
#'
303+
#' Fenton growth curves with premature infant data with sex, age, and integer
304+
#' weight
305+
#'
306+
#' @name fentlms_foraga
307+
#'
308+
#' @section fentlms_foraga.csv.gz:
309+
#'
310+
#' Used in function `cleangrowth()`
311+
#'
312+
#'
313+
NULL
314+
315+
#' Fenton Growth Curve Z-Scores
316+
#'
317+
#' Fenton growth curves with premature infant z-scores for height and head
318+
#'circumference
319+
#'
320+
#' @name fentlms_forz
321+
#'
322+
#' @section fentlms_forz.csv.gz:
323+
#'
324+
#' Used in function `cleangrowth()`
325+
#'
326+
#'
327+
NULL

0 commit comments

Comments
 (0)