Learn R Programming

onewaytests (version 1.1)

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, na.rm = TRUE)

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.
na.rm
a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

A list with class "htest" containing the following components:
statistic
the James's Second-Order Test statistic.
parameter
the critical value of the James's Second-Order Test statistic.

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