Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

One-way analysis of variance

returns
the `p`

= anova1(`y`

)*p*-value for a balanced one-way ANOVA. It also displays the standard
ANOVA table (`tbl`

) and a box plot of the columns
of `y`

. `anova1`

tests the hypothesis
that the samples in `y`

are drawn from populations
with the same mean against the alternative hypothesis that the population
means are not all the same.

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`

Was this topic helpful?