The on implementation runs a Kruskal-Wallis test via a compiled C++
backend (kruskal_wallis_cpp()) directly on .proc$data, without going
through an R-level x_by() grouping split.
Arguments
kwtest_def_on's baseline fn takes no arguments beyond .proc —
nothing is passed through ... in KW_TEST() or statim::via() for this path.
One-sample Kruskal-Wallis default class
No S7 wrapper. The baseline returns whatever kruskal_wallis_cpp()
returns, unwrapped, a plain list with statistic, df, p_value.
Unlike x_by(), this path does not return class_kw_test. It has
its own print method (a tibble with H Statistic,
Degrees of Freedom, p-value columns) and its own registered
statim::making_tidy() entry (tibble::as_tibble(.x@data)), rather
than inheriting statim::auto_tidy() from class_kw_test.
See also
Other kwtest-implementations:
kwtest-xby