signTest | R Documentation |
Performs sign-flipped one-sample t-tests.
signTest(X, B = 1000, alternative = "two.sided", seed = NULL, mask = NULL, rand = FALSE)
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 |
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)
out <- signTest(X = X, alternative = "two.sided")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.