Learn R Programming

onewaytests (version 1.0)

ag.test: A Function to Perform Alexander-Govern Test

Description

ag.test performs Alexander-Govern test.

Usage

ag.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 Alexander-Govern statistic.
  • dfthe degrees of freedom of the approximate chi-squared distribution of the test statistic.
  • p.valuethe p-value of the test.

References

Schneider, P. J., Penfield, D. A. (1997). Alexander and Govern's Approximation: Providing an Alternative to ANOVA Under Variance Heterogeneity. The Journal of Experimental Education, 65:3, 271-286.

Examples

Run this code
ag.test(iris$Sepal.Width,iris$Species)

Run the code above in your browser using DataLab