library(magrittr)
x0 <- runif(20)
x <- lapply(
c(1, -1),
function(i) sapply(seq(10), function(j) x0 * i + runif(10, max = 1))
) %>%
Reduce(cbind, .) %>%
set_colnames(paste("Variable", seq(20)))
y <- lapply(
c(1, -1),
function(i) sapply(seq(10), function(j) x0 * i + runif(10, max = 1))
) %>%
Reduce(cbind, .) %>%
set_colnames(paste("Variable", seq(20))) %>%
.[, seq(5)]
mcor_test(x)
mcor_test(
x,
y,
p.value = TRUE,
method = "pearson",
method_adjust = "bonferroni"
)
Run the code above in your browser using DataLab