A list with class "htest" containing the following components:
statistic
The observed value of the statistic.
p.value
the p-value for the test.
method
a character string indicating the type of test performed.
data.name
a character string giving the name(s) of the data.
B
The number of samples generated
alternative
the direction of the test
Details
This function performs a two sample permutation test. If the mean is permuted, then the test assumes exchangability
between the two samples. if the t-statistic is used, the test assumes either exchangability or a sufficiently large
sample size. Because there is little lost in the way of power, and the assumptions are weaker, the t-statistic is
used by default.