permTest | R Documentation |
Performs permutation-based two-sample t-tests.
permTest(X, B = 1000, alternative = "two.sided", seed = NULL,
mask = NULL, rand = FALSE, label = NULL)
X |
Data matrix where rows represent the |
B |
Numeric value. Number of permutations, default to 1000. |
alternative |
Character string. It refers to the alternative hypothesis, must be one of |
seed |
Integer value. If you want to specify the seed. Default to to |
mask |
NIfTI file or character string. 3D array of logical values (i.e. |
rand |
Boolean value. Default to |
label |
Numeric/character vector. Labels of the observations, if |
Returns a list with the following objects:
Vector with length equals m
. Observed two-samples t-tests, one for each m
variable
Matrix with dimensions m \times B-1
. Test statistics under the null hypothesis
Vector with length equals m
. Observed p
-values, one for each m
variable
Matrix with dimensions m \times B-1
. p
-values under the null hypothesis
Angela Andreella
X <- matrix(rnorm(100*20), ncol=20)
X[,1:10] <- X[,1:10] + rnorm(100*10, mean = 5)
out <- permTest(X = X, alternative = "two.sided", label = c(rep(1,10),rep(0,10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.