multipleComp: Multiple Comparisons

Description Usage Arguments Value Examples

View source: R/multipleComp.R

Description

Calculates and prints the estimate, multiple 95% confidence intervals; unadjusted, Tukey and Bonferroni p-values for all possible differences in means in a one-way ANOVA.

Usage

1
multipleComp(fit, conf.level = 0.95, FUN = identity)

Arguments

fit

output from the command 'lm()'.

conf.level

confidence level for the confidence interval, expressed as a percentage.

FUN

optional function to be applied to estimates and confidence intervals. Typically for backtransformation operations.

Value

Returns a list of estimates, confidence intervals and p-values.

Examples

1
2
3
4
5
6
7
8
9
## computer data
data(computer.df)
fit = lm(score ~ factor(selfassess), data = computer.df)
multipleComp(fit)

## butterfat data
data("butterfat.df")
fit <- lm(log(Butterfat) ~ Breed, data=butterfat.df)
multipleComp(fit, FUN=exp)

s20x documentation built on Aug. 23, 2021, 9:15 a.m.

Related to multipleComp in s20x...