percentileWtGestAge: Percentile Weight for Gestational Age

Description Usage Arguments Author(s) Source Examples

View source: R/percentileWtGestAge.R

Description

Reference a birth weight for gestational age to the World Health Organization growth tables.

Usage

1
2
percentileWtGestAge(weeks, wt, less = TRUE, direction = FALSE,
  result = c("ptile", "code", "desc"))

Arguments

weeks

Weeks gestational age (as an integer)

wt

Weight in grams

less

Logical. Determines if the percentile returned should be read as "less than [percentile]" or "greater than [percentile]"

direction

Logical. Should an inequality symbol be printed with the result to indicate the direction. See Examples.

result

A character specifying how the results should be returned. "ptile" results in the numeric percentile value being returned; "code" returns the percentile code; and "desc" returns the percentile description. These values are represented by the percentile, percentile_code, and percentile_desc fields, respectively, in the GestAgeWtPercentile data set.

Author(s)

Benjamin Nutter

Source

Data are extracted from the World Health Organization (WHO) website (see link below). The link to download the MS Excel sheet is under the "Methodological aspects and other analysis" and titled "Weight percentiles calculator."

http://www.who.int/reproductivehealth/topics/maternal_perinatal/globalsurvey/en/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#* Results can be read as "less than 75th percentile" (for example) 
percentileWtGestAge(weeks = c(30, 34, 36),
                    wt = c(1500, 2500, 2000))

#* Same results, but with directional indicator
percentileWtGestAge(weeks = c(30, 34, 36),
                    wt = c(1500, 2500, 2000),
                    direction=TRUE)

#* Same results, but with directional indicator
#* and percentile description
percentileWtGestAge(weeks = c(30, 34, 36),
                    wt = c(1500, 2500, 2000),
                    direction=TRUE,
                    result="desc")

nutterb/Bluegrass documentation built on May 24, 2019, 10:50 a.m.