factorComp {iNZightRegression} | R 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 |
... |
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 classinzfactorcomp
Author(s)
Tom Elliott
Examples
f <- lm(Sepal.Length ~ Sepal.Width + Species, data = iris)
factorComp(f, "Species")
[Package iNZightRegression version 1.3.4 Index]