Skip to contents

Based on tables from WHO: http://www.who.int/childgrowth/standards/height_for_age/en/

Usage

pct_height_for_age(
  age = NULL,
  height = NULL,
  sex = NULL,
  return_median = FALSE,
  ...
)

Arguments

age

age in years

height

height in kg. Optional, if specified, will calculate closest percentile and return in list as `percentile`

sex

either `male` or `female`

return_median

just return the median expected value

...

parameters passed to `read_who_table()`

Examples

pct_height_for_age(age = 5, sex = "female")
#> $P01
#> [1] 94.709
#> 
#> $P1
#> [1] 98.341
#> 
#> $P3
#> [1] 100.459
#> 
#> $P5
#> [1] 101.581
#> 
#> $P10
#> [1] 103.308
#> 
#> $P15
#> [1] 104.474
#> 
#> $P25
#> [1] 106.195
#> 
#> $P50
#> [1] 109.402
#> 
#> $P75
#> [1] 112.609
#> 
#> $P85
#> [1] 114.329
#> 
#> $P90
#> [1] 115.495
#> 
#> $P95
#> [1] 117.222
#> 
#> $P97
#> [1] 118.344
#> 
#> $P99
#> [1] 120.462
#> 
#> $P999
#> [1] 124.094
#> 
pct_height_for_age(age = 5, height = 112, sex = "female")
#> $percentile
#> [1] 70.3
#>