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.


UCLATALL/supernova documentation built on Feb. 13, 2024, 6:57 a.m.