calculate_th | R Documentation |
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.
calculate_th(
hgtf,
hgtm,
sex = NULL,
etn = NULL,
support_missing_hgtf = FALSE,
dec = c(1L, 3L, 3L)
)
hgtf |
Length of biological father (cm) |
hgtm |
Length of biological mother (cm) |
sex |
Character, either |
etn |
Ethnicity, one of |
support_missing_hgtf |
Logical, if |
dec |
Integer vector, length 2, indicating rounding for th and th_z, respectively |
Numeric, length 3: 1) target height (cm), 2) target height
prediction error and 3) target height SDS.
Stef van Buuren, 2019, 2024
calculate_th(180, 170, "male", "NL")
calculate_th(NA, 170, "male", "NL", support_missing_hgtf = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.