Description Usage Arguments Author(s) Source Examples
View source: R/percentileWtGestAge.R
Reference a birth weight for gestational age to the World Health Organization growth tables.
1 2 | percentileWtGestAge(weeks, wt, less = TRUE, direction = FALSE,
result = c("ptile", "code", "desc"))
|
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.
|
Benjamin Nutter
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/
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.