pcor.test: Projection Correlatoin Permutation Test

Description Usage Arguments Value References See Also Examples

View source: R/pcor.R

Description

Return the test result of projection correlation test. Test whether two vectors are independnet. Two vectors can be with different dimensions, but with equal sample sizes.

Usage

1
pcor.test(X, Y)

Arguments

X

A numeric matrix, n*p, each row of the matrix is i.i.d generated from one vector

Y

A numeric matrix, n*q, each row of the matrix is i.i.d generated from the other vector

Value

pcor.value projection correlation of X and Y

p.value the p-value under the null hypothesis two vectors are independent

References

L.Zhu, K.Xu, R.Li, W.Zhong(2017). Projection correlation between two random vectors. Biometrika, Volume 104, Pages 829<e2><80><93>843. https://doi.org/10.1093/biomet/asx043

See Also

pcor

Examples

1
2
3
X = matrix(rnorm(100*34,1),100,34)
Y = matrix(rnorm(100*62,1),100,62)
pcor.test(X,Y)

YilinZhang97/PC documentation built on May 28, 2019, 2:46 p.m.