factorComp: Compare factor levels

View source: R/factorMeans.R

factorCompR Documentation

Compare factor levels

Description

Computes confidence intervals for the pairwise differences between levels of a factor, based off of stats::TukeyHSD.

Usage

factorComp(fit, factor)

## S3 method for class 'inzfactorcomp'
print(x, ...)

Arguments

fit

a lm/glm/svyglm object

factor

the name of the factor to compare

x

an inzfactorcomp object

...

extra arguments for print (ignored)

Value

a factor level comparison object with estimates, CIs, and (adjusted) p-values

Functions

  • print(inzfactorcomp): print method for object of class inzfactorcomp

Author(s)

Tom Elliott

Examples

f <- lm(Sepal.Length ~ Sepal.Width + Species, data = iris)
factorComp(f, "Species")

iNZightVIT/iNZightRegression documentation built on April 8, 2024, 10:25 a.m.