Skip to contents

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.

Usage

making_gauge(obj, model_type)

Arguments

obj

A stat function built with HTEST_FN() or MODEL_FN() (e.g. T_TEST, LINEAR_REG).

model_type

An S7 variable mapper <var_id> class, or S7::class_formula.

Value

A making_gauge_call object, consumed by %<-%.

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, ...) { ... }
)