powered by
TukeyHSD
aov
## S3 method for class 'lm': TukeyHSD(x, which, ordered = FALSE, conf.level = 0.95, ...)## S3 method for class 'formula': TukeyHSD(x, which, ordered = FALSE, conf.level = 0.95, data = parent.frame(), ...)
## S3 method for class 'formula': TukeyHSD(x, which, ordered = FALSE, conf.level = 0.95, data = parent.frame(), ...)
lm
formula
base
## These should all give the same results model <- lm(age ~ substance, data=HELPrct) TukeyHSD(model) TukeyHSD( age ~ substance, data=HELPrct) TukeyHSD(aov(age ~ substance, data=HELPrct))
Run the code above in your browser using DataLab