meantest.pe.comp {PEtests} | R Documentation |
Two-sample PE mean test for high-dimensional data via PE component
Description
This function implements the two-sample PE mean via the
construction of the PE component. Let
denote the
-norm-based mean test statistic
(see
meantest.cq
for details).
The PE component is constructed by
where is a threshold for the screening procedure,
recommended to take the value of
.
The explicit forms of
and
can be found in Section 3.1 of Yu et al. (2022).
The PE covariance test statistic is defined as
With some regularity conditions, under the null hypothesis
,
the test statistic
converges in distribution to
a standard normal distribution as
.
The asymptotic
-value is obtained by
where is the cdf of the standard normal distribution.
Usage
meantest.pe.comp(dataX,dataY,delta=NULL)
Arguments
dataX |
an |
dataY |
an |
delta |
a scalar; the thresholding value used in the construction of
the PE component. If not specified, the function uses a default value
|
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)
meantest.pe.comp(X,Y)