means_and_counts: Get the means and counts for each categorical term in the...

View source: R/pairwise.R

means_and_countsR Documentation

Get the means and counts for each categorical term in the model

Description

Get the means and counts for each categorical term in the model

Usage

means_and_counts(fit, term)

Arguments

fit

A model fit by lm() or aov() (or similar).

term

If NULL, use each categorical term in the model. Otherwise, only use the given term.

Value

A list of the means and counts for each level of each term.


supernova documentation built on Nov. 5, 2023, 1:09 a.m.