This function performs a two sample permutation test of data locations by returning a p value. It is a wrapper function for C level computations. Users are not expected to use this function directly because there is no error checking mechanisms. However, for purpose of performance testing and other demands, this function is visible in this package.
Usage
Permutation(data, factor)
"print"(x,...)
Arguments
x
The Permutation class to be printed.
data
The set of all data to be permuted
factor
The set of indices, indicating group assignments of values in vector data. This parameter should be in factor type..
...
Reserved for future.
Value
Statistics
The observed test statistics for input data. It is the sum of all elements in first group.
Permutations
The total number of permutations can be performed on input groups.
pvalue
The p value of this two sample permutation test.
Details
Details about implementations are located in Permutation.c.
References
Fisher, R. A. 1925, 'Statistical Methods for Research Workers', Oliver and Boyd, Edinburgh