Selects the row of a governed normative reference's model table that matches the supplied covariates: categorical stratification variables (e.g. sex) are matched exactly, numeric ones (e.g. age, speed) by nearest value. A covariate falling outside the tabulated range is flagged as an extrapolation.
Examples
ref <- GovernedNormativeReference("gs", "gait", "gait_speed",
provenance = list(source = "x"), consent = list(status = "public"),
license = list(spdx = "CC0-1.0"),
governance = list(custodian = "lab", access_level = "open"),
strata_vars = c("age", "sex"),
model = list(type = "strata", table = data.frame(
age = c(60, 70), sex = "M", mean = c(1.4, 1.3), sd = 0.2)))
matchStratum(ref, list(age = 68, sex = "M"))
#> age sex mean sd
#> 2 70 M 1.3 0.2