| cmtwo | R Documentation |
Given two sets of data, it performs 2-sample test for equality of covariance matrices where the null hypothesis is
H_0 : \Sigma_1 = \Sigma_2
where \Sigma_1 and \Sigma_2 represent true (unknown) covariance
for each dataset based on a procedure proposed by Cai and Ma (2013).
If statistic > threshold, it rejects null hypothesis.
cmtwo(X, Y, alpha)
X |
an |
Y |
an |
alpha |
level of significance. |
a named list containing
a test statistic value.
rejection criterion to be compared against test statistic.
a logical; TRUE to reject null hypothesis, FALSE otherwise.
Guo, G., Qian, G., & Zhu, L. (2022). A scalable quasi-newton estimation algorithm for dynamic generalized linear models. Journal of Nonparametric Statistics, 34, 917-939. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10485252.2022.2085263")}.
Guo, G., & Zhao, W. (2021). Schwarz method for financial engineering. Journal of Computational Mathematics, 39(4), 538-555.
You, W., Yang, Z., Guo, G., Wan, X.-F., & Ji, G. (2019). Prediction of DNA-binding proteins by interaction fusion feature representation and selective ensemble. Knowledge-Based Systems, 163, 598-610.
## generate 2 datasets from multivariate normal with identical covariance.
p= 5; n1 = 100; n2 = 150; alpha=0.05
X=data1 = matrix(rnorm(n1*p), ncol=p)
Y=data2 = matrix(rnorm(n2*p), ncol=p)
# run test
cmtwo(X, Y, alpha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.