bmi_internal: Internal helper functions for 'get_BMI_percentile'

bmi_internalR Documentation

Internal helper functions for get_BMI_percentile

Description

Internal helper functions for get_BMI_percentile

Usage

percentile_age(age_mos, age_yrs)

percentile_BMI(BMI, weight_kg, height_cm)

percentile_index(reference, age_mos)

percentile_lms(reference, colname, lesser_index, greater_index, increment)

percentile_reference(sex)

percentile_sex(sex = c("error", "male", "female"))

percentile_z(BMI, L, M, S)

percentile_back_calculate(p = 0.95, L, M, S)

Arguments

age_mos

age in months (optional)

age_yrs

age in years

BMI

numeric. Body mass index

weight_kg

Weight in kilograms

height_cm

height in centimeters

reference

reference subset for calculations

colname

character. Column name of reference on which to operate

lesser_index

lower match index of reference

greater_index

upper match index of reference

increment

proportional distance between reference[lesser_index, ] and reference[greater_index, ]

sex

Character scalar indicating participant's sex

L

lambda

M

mu

S

sigma

p

percentile for which to back-calculate a BMI (must be between 0 and 1)

See Also

Flegal and Cole (2013)


PAutilities documentation built on Aug. 21, 2022, 9:05 a.m.