Learn R Programming

iNZightRegression (version 1.3.5)

factorComp: 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 inzfactorcomp print(x, ...)

Value

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

Arguments

fit

a lm/glm/svyglm object

factor

the name of the factor to compare

x

an inzfactorcomp object

...

extra arguments for print (ignored)

Functions

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

Author

Tom Elliott

Examples

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

Run the code above in your browser using DataLab