permutation_test | R Documentation |
Computes the significance of (partial) correlation based on permutations of the observations
permutation_test(x, y, iter = 1000, fun = pcor, mode = 1, ...)
x |
wild type data set |
y |
mutant data set |
iter |
number of iterations (permutations) |
fun |
function to compute the statistic, e.g., cor or pcor |
mode |
either 1 for a function that takes a single data set and produces an output of class matrix, and 2, if the function takes two data sets |
... |
additional arguments for function 'fun' |
matrix of p-values
x <- matrix(rnorm(100),10,10) y <- matrix(rnorm(100),10,10) permutation_test(x,y,iter=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.