covtest.pe.fisher {PEtests} | R Documentation |
Two-sample PE covariance test for high-dimensional data via Fisher's combination
Description
This function implements the two-sample PE covariance test via
Fisher's combination.
Suppose are i.i.d.
copies of
, and
are i.i.d. copies of
.
Let
and
denote the
-values associated with
the
-norm-based covariance test (see
covtest.lc
for details)
and the -norm-based covariance test
(see
covtest.clx
for details), respectively.
The PE covariance test via Fisher's combination 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
covtest.pe.fisher(dataX,dataY)
Arguments
dataX |
an |
dataY |
an |
Value
stat
the value of test statistic
pval
the p-value for the test.
References
Yu, X., Li, D., and Xue, L. (2022). Fisher’s combined probability test for high-dimensional covariance matrices. 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)
covtest.pe.fisher(X,Y)