Description Usage Arguments Value See Also
This function computes the t-test on the inputs R times and samples the pooled data (i.e. x and y together) without replacement. The function calculates the p-value by
1 | permutation_test(x, y, R, use_sample = TRUE, ...)
|
x |
a numeric vector |
y |
a numeric vector |
R |
number of resamples. Must be between 99 and 999. |
use_sample |
logical. Use the sample() function? If FALSE, this function will use the runif() function to draw random samples. |
... |
optional (named) parameters
|
List containing
data: list containing input parameters
results: result of the permutation test. Contains indices for each run, p-values, options passed to the t-tests
Rizzo, Maria L. "Statistical Computing with R". Chapman and Hall/CRC, 2007. pp. 183-188
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.