stat_define() declares a single implementation of a statistical procedure
for a given model type. Multiple stat_define objects are passed to
HTEST_FN() or MODEL_FN() via defs. This is the main extension point
for adding new tests or models.
Arguments
- model_type
A variable mapper
<var_id>class this implementation handles (e.g.x_by,S7::class_formula).- impl
An
agendas()object collecting all implementations. Thefnof eachbaseline()andvariant()inside receives.procas its first argument. Seebaseline()for the expected signature andmodel_processor()for the keys available on.procper model type.- compatible_params
A list of S7 param classes (e.g.
list(MU, PI)) this implementation accepts in hypothesis claims. An empty list (the default) disables the check entirely. Useful when a test is param-agnostic or the restriction has not yet been declared. Applies to every variant inimpl.