making_gauge() is the escape hatch for registering effect-size
methods when a variant's fn intentionally returns a non-
class_stat_infer object. When fn returns a class_stat_infer
subclass, implement auto_gauge() on the result class instead — no
registration needed.
Arguments
- obj
A stat function built with
HTEST_FN()orMODEL_FN()(e.g.T_TEST,LINEAR_REG).- model_type
An S7 variable mapper
<var_id>class, orS7::class_formula.
Examples
# Only needed when fn returns a non-class_stat_infer object.
# Prefer implementing auto_gauge() on your result class instead.
making_gauge(T_TEST, x_by) %<-% method_gauge(
default = function(.x, ...) { ... }
)
