ANOVA

ANOVA[data]
performs a one-way analysis of variance.


performs an analysis of variance for model as a function of the categorical variables vars.

DetailsDetails

  • To use , you first need to load the Analysis of Variance Package using Needs["ANOVA`"].
  • The data can have the form , where the number of coordinates is equal to the number of variables in the list vars.
  • For data of the form , a one-way analysis of variance can be obtained without explicitly specifying the model and variable.
  • The model argument can be a list containing main effects and interactions. Main effects are elements of vars, and interactions are products of main effects.
  • A full factorial model including all interactions between variables can be specified as {x, y, ..., All}.
  • The following options can be given:
  • CellMeansTruewhether cell means should be included in the output
    WorkingPrecisionMachinePrecisionthe precision used in internal computations
    PostTests{}significance tests to perform
    SignificanceLevel0.05significance level for performed tests
  • Possible settings for PostTests include: Bonferroni, Duncan, Dunnett, StudentNewmanKeuls, and Tukey.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

In[1]:=
Click for copyable input

A one-way analysis of variance:

In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input

A two-way analysis of variance:

In[2]:=
Click for copyable input
Out[2]=
New to Mathematica? Find your learning path »
Have a question? Ask support »