two_sample {permutest} | R Documentation |
Two-sample permutation test
Description
This function runs a permutation test with difference in means test statistic for the two-sample problem by calling the permutation_test function.
Usage
two_sample(x, y, shift = 0, alternative = "greater", reps = 10^4, seed = NULL)
Arguments
x |
array of data for treatment group |
y |
array of data for control group |
shift |
Value of shift to apply in two-sample problem |
alternative |
String, two-sided or one-sided (greater or less) p-value; options are 'greater', 'less', or 'two-sided' |
reps |
Number of iterations to use when calculating permutation p-value |
seed |
An integer seed value |
Value
The permutation test p-value
Examples
two_sample(x = c(10, 9, 11), y = c(12, 11, 13), alternative = "less", seed = 42)
[Package permutest version 1.0.0 Index]