The data matrix,
x, with two-level factor,
fac, is used
to compute t-tests. The values of
fac are permuted
times and the complete set of t-tests is performed for each
A data matrix. The number of columns should be the same as
the length of
A factor with two levels.
An integer specifying the number of permutations.
A logical indicating whether to compute only the t-test
statistic for each permuation. If
Not much more to say. Probably there is a generic function somewhere, but I could not find it.
A list, the first element is named
obs and contains the true,
observed, values of the t-statistic. The second element is named
ans and contains a list of length
B containing the
1 2 3