SK.test: Srivastava and Kubokawa test for equal means

Description Usage Arguments Value Author(s) References See Also Examples

Description

Performs the test from Srivastava and Kubokawa (2013) for the equality of two p by 1 population mean vectors given samples of sizes n and m.

Usage

1
SK.test(X, Y)

Arguments

X

the n by p data matrix for sample one.

Y

the m by p data matrix for sample two.

Value

TSvalue

the value of the test statistic.

pvalue

the two-sided p-value for the test statistic.

Author(s)

Karl Gregory kgregory@mail.uni-mannheim.de, http://www.stat.tamu.edu/~kbgregory.

References

Srivastava, M. S. and Kubokawa, T. (2013). Tests for multivariate analysis of variance in high dimension under non-normality. Journal of Multivariate Analysis 115, 204216.

See Also

SK.sim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
	
data(chr1qseg)
	
	impute <- function(x) 	
	{ 	
		x[which(is.na(x))] <- mean(x,na.rm=TRUE)
		return(x)
	}
	
	X <- apply(chr1qseg$X,2,impute)
	Y <- apply(chr1qseg$Y,2,impute)
	
	SK.test(X,Y)
	
	
## End(Not run)

highD2pop documentation built on May 2, 2019, 5:11 a.m.