Skip to contents

An S7 class produced by TTEST pipelines using x_by() as the variable mapper <var_id>. Not constructed manually — use the pipeline instead.

Inherits from class_stat_infer, so auto_tidy() dispatches on it automatically. Downstream packages can use it as a parent in S7::new_class().

Details

Slots (populated automatically by TTEST):

  • group: name of the grouping variable.

  • estimate: mean difference (or linear contrast estimate).

  • t_stat: t-statistic.

  • df: degrees of freedom.

  • p_val: p-value.

  • lower_ci: lower confidence bound.

  • upper_ci: upper confidence bound.

  • ci_level: confidence level, e.g. 0.95.

Shared by variants

Both the default (base) and contrast return a class_ttest_two, so auto_tidy() and print() are inherited by contrast for free.