mkfun_sex_age_height: Create a Sex-, Age-, and Height-Specific Interpolation...

View source: R/score_calculator.R

mkfun_sex_age_heightR Documentation

Create a Sex-, Age-, and Height-Specific Interpolation Function

Description

Constructs a closure for interpolating values that depend on sex, age, and height. Chooses appropriate internal spline function based on 'vname' and 'param'.

Usage

mkfun_sex_age_height(vname, param)

Arguments

vname

Character. Variable name (e.g., "bmi", "waist").

param

Character. Distribution parameter (e.g., "mu", "sigma").

Value

A function with signature '(sex, age, height)' returning interpolated values.


pediatric.zcalc documentation built on Sept. 30, 2026, 5:13 p.m.