This is the main function of metaCCA.
metaCCA(est_genetic_cov, est_pheno_cov, est_XY_cov, N)
Arguments
- est_genetic_cov
Estimated genotype correlation matrix.
- est_pheno_cov
Estimated phenotype correlation matrix.
- est_XY_cov
Estimated correlation matrix between
genotype and phenotype.
- N
Sample size.
Value
A numeric value represents the p value of metaCCA.
Examples
est_genetic_cov <- diag(nrow = 2,ncol = 2)
est_pheno_cov <- diag(nrow = 2,ncol = 2)
est_XY_cov <- matrix(rnorm(rep(0,4),diag(nrow = 2, ncol = 2)),2,2)
N <- 1000
ThreeWayTest::metaCCA(est_genetic_cov,est_pheno_cov,est_XY_cov,N)
#> [1] 0