| DLC | R Documentation |
Given two sets of data matrices X and Y, where X is an
n_1 \times p matrix and Y is an n_2 \times p matrix, we
conduct hypothesis testing of the covariance matrix between two samples.
The null hypothesis is
H_0 : \Sigma_1 = \Sigma_2,
where \Sigma_1 and \Sigma_2 are the sample covariance matrices of
X and Y respectively. The test is based on the method proposed
by Li and Chen (2012). When the p-value is less than the significance
level (generally 0.05), the null hypothesis is rejected.
DLC(X, Y, K, alpha = 0.05)
X |
A numeric matrix of dimension |
Y |
A numeric matrix of dimension |
K |
Integer, number of blocks. |
alpha |
Numeric, significance level. Default is 0.05. |
A list with components:
stat |
the test statistic. |
pval |
the p-value. |
power |
the estimated power. |
fdr |
the estimated false discovery rate. |
Xopt |
the selected block of |
Yopt |
the selected block of |
## Not run:
## generate data from multivariate normal with trivial covariance
p <- 500
n1 <- 100
n2 <- 150
K <- 10
X <- matrix(rnorm(n1 * p), ncol = p)
Y <- matrix(rnorm(n2 * p), ncol = p)
## run test
DLC(X, Y, K)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.