baseline() declares the default implementation of a statistical procedure.
It is always the default and is the only implementation reachable 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.baseline( fn = function(.proc, .mu = 0, .ci = 0.95) { # ... <your-own-class>(...) # return a class_stat_infer subclass } )When
fnreturns a class_stat_infer subclass,auto_tidy()and futureauto_*()generics dispatch automatically on the result. Otherwise, register a tidy method viamaking_tidy().A function with signature
function(x, ...)for formatting the result.xis acld_execobject — read your result fromx@data.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 implementation does not supportstate_null().