Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

anova.mean

ANOVA table from the group sample sizes, means, and standard deviations.


Description

Oneway ANOVA table from the summary information consisting of group sample sizes, means, and standard deviations. The full dataset is not needed.

Usage

anovaMean(object, n, ybar, s, ..., ylabel = "ylabel")

Arguments

object

level names

n

sample size for each level

ybar

sample mean for each level

s

sample standard deviation for each level

...

other arguments (not used)

ylabel

name of response variable

Value

Analysis of variance table, identical to the ANOVA table that would have been produced by anova.lm if the original data, rather than the summary data, had been available.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

See Also

Examples

## pulmonary data used in Hsu and Peruggia paper defining the mean-mean plot
## See ?plot.mmc.multicomp for details on the dataset.

data(pulmonary)

anovaMean(pulmonary$smoker,
          pulmonary$n,
          pulmonary$FVC,
          pulmonary$s,
          ylabel="pulmonary")

HH

Statistical Analysis and Data Display: Heiberger and Holland

v3.1-43
GPL (>= 2)
Authors
Richard M. Heiberger
Initial release
2020-11-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.