One-way analysis of variance

performs one-way ANOVA for the
sample data `p`

= anova1(`y`

)`y`

and returns the *p*-value.
`anova1`

treats each column of `y`

as a
separate group. The function tests the hypothesis that the samples in the columns of
`y`

are drawn from populations with the same mean against the
alternative hypothesis that the population means are not all the same. The function
also displays the box plot for each group
in `y`

and the standard ANOVA table
(`tbl`

).

enables
the ANOVA table and box plot displays when `p`

= anova1(`y`

,`group`

,`displayopt`

)`displayopt`

is `'on'`

(default)
and suppresses the displays when `displayopt`

is `'off'`

.

`[`

returns a structure, `p`

,`tbl`

,`stats`

]
= anova1(___)`stats`

,
which you can use to perform a multiple comparison test. A multiple
comparison test enables you to determine which pairs of group means
are significantly different. To perform this test, use `multcompare`

, providing the `stats`

structure
as an input argument.

[1] Hogg, R. V., and J. Ledolter. *Engineering
Statistics*. New York: MacMillan, 1987.

`anova2`

| `anovan`

| `boxplot`

| `multcompare`