Skip to contents

An S7 class produced by P_TEST pipelines using prop() as the model 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 P_TEST):

  • x: number of successes (input).

  • n: number of trials (input).

  • estimate: observed proportion (x / n).

  • statistic: test statistic. The count x for the default binomial; the chi-squared value for "prop".

  • 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 default and prop return a class_p_test, so auto_tidy() and print() are inherited by prop for free.