Calculate target height SDS for a single child
calculate_th.Rd
calculate_th()
calculates the target height of a child based on the height
of the biological parents, using the method proposed by Hermanussen & Cole
(2003) with a simplified formula for the Dutch population. The function is
not vectorized, so it only works for a single child at a time. Optionally,
it can calculate the target height based on the height of the mother only,
although this only works for the Dutch population.
Usage
calculate_th(
hgtf,
hgtm,
sex = NULL,
etn = NULL,
support_missing_hgtf = FALSE,
dec = c(1L, 3L, 3L)
)
Arguments
- hgtf
Length of biological father (cm)
- hgtm
Length of biological mother (cm)
- sex
Character, either
"male"
or"female"
. If omitted, the functions returns c(NA
,NA
).- etn
Ethnicity, one of
"NL"
(dutch),"TU"
(turkish),"MA"
(moroccan) or"HS"
(hindustani). If omitted, the functions returns c(NA
,NA
).- support_missing_hgtf
Logical, if
TRUE
andhgtf
is missing, the function will calculate the target height based onhgtm
only. This will work only for the Dutch population. Ifhgtm
is missing, the function will always returnNA
. The default issupport_missing_hgt = FALSE
.- dec
Integer vector, length 2, indicating rounding for th and th_z, respectively