twoSamples {pecora} | R Documentation |
Performs two-sample t-tests by permutations.
twoSamples(X, B = 1000, seed = 1234,
permReturn = TRUE, label = NULL)
X |
data matrix where columns represent the |
B |
numeric value, number of permutations to be performed, including the identity. Default is 1000. |
seed |
numeric value, specify seed. Default is 1234. |
permReturn |
logical value, |
label |
by default |
Returns a matrix objects:
Matrix with dimensions m x B
of permuted two-samples t-tests. The first column is the observed one-sample t-tests.
if permReturn = TRUE
otherwise returns:
Vector of m
observed two-samples t-tests
Angela Andreella
X <- matrix(rnorm(100*20), nrow=20)
rownames(X) <- c(rep(0, 10), rep(1,10))
out<- twoSamples(X = X)