Learn R Programming

supernova (version 2.5.3)

means_and_counts: 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)

Value

A list of the means and counts for each level of each 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.