ideal_weight_Traub: ideal weight for child per Traub

Description Usage Arguments Source Examples

View source: R/bmi.R

Description

2.396e0.01863(height), where height is in cm. There is an argument for using another package to capture durations, of which age is a special case. However, I am resisting bringing in external dependencies, and for almost all use-cases I can imagine, the age will be captured as a single number of one type, not a mix of types. Note that gender does not appear to be important in this relationship.

See package AGD for CDC growth chart data.

Usage

1
ideal_weight_Traub(height_m, age_y = NULL, ...)

Arguments

height_m

single numeric, height in meters

age_y

numeric vector, age(s) in years. Extremely exact age is not required, so for age in days or months, simplest just to divide. This is not used in the calculation itself, so may be missing.

...

arguments passed to downstream functions, e.g. warn = TRUE

Source

http://www.ncbi.nlm.nih.gov/pubmed/6823980

Examples

1
2
3
4
5
6
7
8
9
# will warn if given age is not in validate range from publication:
## Not run: 
  ideal_weight_child(height_m = 0.5, age_y = 0, do_warn = TRUE)
  ideal_weight_child(0.8, age_y = 11 / 12, do_warn = TRUE)
  ideal_weight_child(0.5, age_y = 25/365, do_warn = TRUE)

## End(Not run)
  ideal_weight_child(0.5, age_y = 25 / 365, do_warn = FALSE)
  ideal_weight_child(1, age_y = 2)

Example output

[1] 6.0818
Warning message:
In valid(age_y, "age", "yr", age_min, age_max, age_min_hard, age_max_hard,  :
  age(s) < 0.0 or > 150.0 yr found. age < 1 year or age > 17 year 
                not validated from Traub formula
[1] 10.63553
Warning message:
In valid(age_y, "age", "yr", age_min, age_max, age_min_hard, age_max_hard,  :
  age(s) < 1.0 or > 18.0 yr found. age < 1 year or age > 17 year 
                not validated from Traub formula
[1] 6.0818
Warning message:
In valid(age_y, "age", "yr", age_min, age_max, age_min_hard, age_max_hard,  :
  age(s) < 1.0 or > 18.0 yr found. age < 1 year or age > 17 year 
                not validated from Traub formula
[1] 6.0818
[1] 15.43752

physiology documentation built on May 2, 2019, 8:58 a.m.