Learn R Programming

onewaytests (version 1.0)

james.test: A Function to Perform James's Second-Order Test

Description

james.test performs James's second-order test.

Usage

james.test(y, group, alpha = 0.05)

Arguments

y
a numeric vector of data values.
group
a vector or factor object giving the group for the corresponding elements of y.
alpha
a significance level. Defaults alpha = 0.05.

Value

  • Returns a list containing following elements:
  • statisticthe James's Second-Order Test statistic.
  • criticalvaluethe critical value of the James's Second-Order Test statistic.
  • resultthe result of the test.

References

Cribbie, R. A., Fiksenbaum, L., Keselman, H. J., Wilcox, R. R. (2012). Effect of Non-Normality on Test Statistics for One-Way Independent Groups Designs. British Journal of Mathematical and Statistical Psychology, 65, 56-73.

Examples

Run this code
james.test(iris$Sepal.Width,iris$Species,alpha=0.05)

y=rnorm(10,5,2)
group=c(rep(1, times=3),rep("two", times=3), rep(8, times=4))
james.test(y, group, alpha=0.10)

Run the code above in your browser using DataLab