Skip to contents

Based on tables from WHO: http://www.who.int/growthref/who2007_bmi_for_age/en/

Usage

pct_bmi_for_age(
  age = NULL,
  bmi = NULL,
  sex = NULL,
  height = NULL,
  return_median = FALSE,
  ...
)

Arguments

age

age in years

bmi

bmi Optional, if specified, will calculate closest percentile and return in list as `percentile`

sex

either `male` or `female`

height

height

return_median

just return the median expected value

...

parameters passed to `read_who_table()`

Examples

pct_bmi_for_age(age = 8, sex = "male")
#> $P01
#> [1] 12.32
#> 
#> $P1
#> [1] 12.988
#> 
#> $P3
#> [1] 13.422
#> 
#> $P5
#> [1] 13.666
#> 
#> $P10
#> [1] 14.065
#> 
#> $P15
#> [1] 14.35
#> 
#> $P25
#> [1] 14.799
#> 
#> $P50
#> [1] 15.737
#> 
#> $P75
#> [1] 16.835
#> 
#> $P85
#> [1] 17.508
#> 
#> $P90
#> [1] 18.002
#> 
#> $P95
#> [1] 18.802
#> 
#> $P97
#> [1] 19.371
#> 
#> $P99
#> [1] 20.57
#> 
#> $P999
#> [1] 23.127
#> 
pct_bmi_for_age(age = 8, bmi = 15, sex = "male")
#> $percentile
#> [1] 30.4
#>