Learn R Programming

MatrixCorrelation (version 0.10.0)

cor.test_eq: Test for no correlation between paired sampes

Description

Permutation test for squared Pearson correlation between to vectors of samples.

Usage

cor.test_eq(x, y, B = 10000)

Arguments

x

first vector to be compared (or two column matrix/data.frame).

y

second vector to be compared (ommit if included in x).

B

integer number of permutations, default = 10000.

Value

A value indicating if the two input vectors are signficantly different.

Details

This is a convenience function combining SMI and significant for the special case of vector vs vector comparisons. The nullhypothesis is that the correlation between the vectors is +/-1, while significance signifies a deviance toward 0.

References

Similarity of Matrices Index - Ulf Geir Indahl, Tormod N<U+00E6>s, Kristian Hovde Liland

See Also

plot.SMI (print.SMI/summary.SMI), RV (RV2/RVadj), r1 (r2/r3/r4/GCD), allCorrelations (matrix correlation comparison), PCAcv (cross-validated PCA).

Examples

Run this code
# NOT RUN {
a <- (1:5) + rnorm(5)
b <- (1:5) + rnorm(5)
cor.test_eq(a,b)

# }

Run the code above in your browser using DataLab