class_stat_infer is the base abstract S7 class for all result objects returned
by fn in baseline() and variant(). Concrete result classes like
class_lm_object inherit from it.
Details
Inheriting from class_stat_infer is the contract that enables automatic
dispatch for auto_tidy(), and future auto_plot() and auto_export()
generics, without any manual registration via making_tidy().
Protocol
Inheriting from class_stat_infer is the contract that enables automatic
dispatch for auto_tidy(), and future auto_plot() and auto_export()
generics, without any manual registration via making_tidy().
When fn in baseline() or variant() returns a class_stat_infer
subclass, tidy() calls auto_tidy() on it automatically. Register a
method on your result class to participate:
Variant inheritance
A variant whose fn returns the same result class as baseline inherits
all auto_*() methods for free via S7's parent chain. A variant that
returns a subclass overrides only what it needs — everything else
inherits automatically:
Class hierarchy
The built-in hierarchy is:
class_stat_infer
├── anova_able
│ └── class_lm_object
└── <your-own-output-class>
└── <your-own-subclass>Downstream packages can extend the hierarchy further by using any
class_stat_infer subclass as a parent in S7::new_class().