Permutation t-test for 2 independent samples | R Documentation |
Permutation t-test for 2 independent samples.
perm.ttest2(x, y, B = 999)
x |
A numerical vector with the data. |
y |
A numerical vector with the data. |
B |
The number of permutations to perform. |
The usual permutation based p-value is computed.
A vector with the test statistic and the permutation based p-value.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Good P. I. (2005). Permutation, parametric and bootstrap tests of hypotheses: a practical guide to resampling methods for testing hypotheses. Springer 3rd Edition.
jack.mean, trim.mean, moranI
x <- rexp(30, 4)
y <- rbeta(30, 2.5, 7.5)
perm.ttest2(x, y, 999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.