variant() declares a named alternative implementation reachable only via
via(). Never runs on the eager path.
Arguments
- fn
A function whose first argument must be
.proc, the processed model output frommodel_processor(). The keys available on.procdepend on the variable mapper<var_id>used:x_by:$x_data,$group_datarel:$x_data,$resp_datapairwise:$var_names,$pairs,$dataformula:$data,$vars,$formula
Try run this to explore the structure:
names(model_processor(<var_id>, <data>)).Additional named arguments are user-supplied statistical parameters (e.g.
.mu,.ci). Seemodel_processor()for the full.procschema per model type.variant( fn = function(.proc, n = 1000L, seed = NULL) { x = .proc$x_data[[1]] group_data = .proc$group_data # ... } )A variant whose
fnreturns the same class_stat_infer subclass asbaselineinheritsauto_tidy()and all futureauto_*()methods automatically via S7's parent chain. A variant returning a subclass can override selectively:A function with signature
function(x, ...).xis acld_execobject.NULLfalls back toprint(x@data).- claim_parser
A
map_claim()object that maps anull_claimto named arguments injected intofnalongside.proc.NULL(the default) if this variant does not supportstate_null().