Learn R Programming

onewaytests (version 1.0)

aov.test: A Function to Perform One-Way Analysis of Variance.

Description

aov.test performs one-way analysis of variance.

Usage

aov.test(y, group)

Arguments

y
a numeric vector of data values.
group
a vector or factor object giving the group for the corresponding elements of y.

Value

  • Returns a list containing following elements:
  • statisticthe analysis of variance test statistic.
  • df1the first degrees of freedom of the approximate F distribution of the test statistic.
  • df2the second degrees of freedom of the approximate F distribution of the test statistic.
  • p.valuethe p-value of the test.

References

Sheskin, D. J. (2004). Handbook of Parametric and Nonparametric Statistical Procedures. 3rd Edition. Chapman and Hall CRC. Florida: Boca Raton.

Examples

Run this code
aov.test(iris$Sepal.Length,iris$Species)

Run the code above in your browser using DataLab