mkfun_sex_age: Create a Sex- and Age-Specific Interpolation Function

View source: R/score_calculator.R

mkfun_sex_ageR Documentation

Create a Sex- and Age-Specific Interpolation Function

Description

Constructs a closure that returns interpolated values based on sex and age. Internally selects from precomputed interpolation functions.

Usage

mkfun_sex_age(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)' returning interpolated values.


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