View source: R/score_calculator.R
| mkfun_sex_age_height | R Documentation |
Constructs a closure for interpolating values that depend on sex, age, and height. Chooses appropriate internal spline function based on 'vname' and 'param'.
mkfun_sex_age_height(vname, param)
vname |
Character. Variable name (e.g., "bmi", "waist"). |
param |
Character. Distribution parameter (e.g., "mu", "sigma"). |
A function with signature '(sex, age, height)' returning interpolated values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.