Performs a permutation test based on the sum of square covariance between variables of two datasets, to test wether the (square) covariance is higher than expected under random association between the two datasets. The test is relevent parallel to a 2B-PLS.
cov.test(X, Y, scale.X = TRUE, scale.Y = TRUE, nperm = 999, progress = TRUE)
a numeric vector, matrix or data frame.
a numeric vector, matrix or data frame.
logical, if TRUE
(default) scaling of X
is required.
logical, if TRUE
(default) scaling of Y
is required.
number of permutations.
logical indicating if the progress bar should be displayed.
a character string indicating the name of the test.
a character string giving the name(s) of the data, plus additional information.
the value of the test statistics.
the number of permutations.
the p-value of the test.
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.