powered by
This function runs a permutation test with difference in means test statistic for the two-sample problem by calling the permutation_test function.
two_sample(x, y, shift = 0, alternative = "greater", reps = 10^4, seed = NULL)
The permutation test p-value
array of data for treatment group
array of data for control group
Value of shift to apply in two-sample problem
String, two-sided or one-sided (greater or less) p-value; options are 'greater', 'less', or 'two-sided'
Number of iterations to use when calculating permutation p-value
An integer seed value
two_sample(x = c(10, 9, 11), y = c(12, 11, 13), alternative = "less", seed = 42)
Run the code above in your browser using DataLab