HH (version 2.2-17)

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

anova.mean(object, n, ybar, s, ..., ylabel = "ylabel")

Arguments

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.

See Also

#ifndef S-Plus anova.lm, #endif #ifdef S-Plus anova.lm, #endif plot.mmc.multicomp

Examples

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

pulmonary <- read.table(hh("datasets/pulmonary.dat"), header=TRUE,
                        row.names=NULL)
names(pulmonary)[3] <- "FVC"
names(pulmonary)[1] <- "smoker"
pulmonary$smoker <- factor(pulmonary$smoker, levels=pulmonary$smoker)
row.names(pulmonary) <- pulmonary$smoker
pulmonary

anova.mean(pulmonary$smoker,
           pulmonary$n,
           pulmonary$FVC,
           pulmonary$s,
           ylabel="pulmonary")

Run the code above in your browser using DataLab