Accept a preset string, custom function, or list with parameters, and return the evaluated coefficient function/matrix.
resolve_effect(
spec,
term_type,
xind = NULL,
yind = NULL,
random_generator = NULL
)Evaluated coefficient: matrix for ff/smooth terms, vector for others.
Effect specification: a string (preset name), function, numeric, or list with `fun` and additional parameters. The special preset `"random"` uses the random_generator to create reproducible random effects.
Character string: one of "ff", "smooth", "const", "intercept", "linear", or "concurrent".
Numeric vector of x evaluation points (for ff terms).
Numeric vector of y (response) evaluation points.
Optional random truth generator from [make_random_truth_generator()], required when spec = "random".