simultest.chisq {PEtests} | R Documentation |
Two-sample simultaneous test using chi-squared approximation
Description
This function implements the two-sample simultaneous test on high-dimensional
mean vectors and covariance matrices using chi-squared approximation.
Suppose are i.i.d.
copies of
, and
are i.i.d. copies of
.
Let
denote
the
-norm-based mean test statistic proposed in Chen and Qin (2010)
(see
meantest.cq
for details),
and let
denote the
-norm-based covariance test statistic
proposed in Li and Chen (2012) (see
covtest.lc
for details).
The simultaneous test statistic via chi-squared approximation is defined as
It has been proved that with some regularity conditions, under the null hypothesis
,
the two tests are asymptotically independent as
,
and therefore
asymptotically converges in distribution to
a
distribution.
The asymptotic
-value is obtained by
where is the cdf of the
distribution.
Usage
simultest.chisq(dataX,dataY)
Arguments
dataX |
n1 by p data matrix |
dataY |
n2 by p data matrix |
Value
stat
the value of test statistic
pval
the p-value for the test.
References
Yu, X., Li, D., Xue, L., and Li, R. (2022). Power-enhanced simultaneous test of high-dimensional mean vectors and covariance matrices with application to gene-set testing. Journal of the American Statistical Association, (in press):1–14.
Examples
n1 = 100; n2 = 100; pp = 500
set.seed(1)
X = matrix(rnorm(n1*pp), nrow=n1, ncol=pp)
Y = matrix(rnorm(n2*pp), nrow=n2, ncol=pp)
simultest.chisq(X,Y)