powered by
This function runs a permutation test for the one-sample problem by calling the permutation_test function using the one-sample mean test statistic.
one_sample(x, shift = 0, alternative = "greater", reps = 10^4, seed = NULL)
The permutation test p-value
array of data
Value of shift to apply in one-sample problem
String, two-sided or one-sided (greater or less) p-value
Number of iterations to use when calculating permutation p-value
An integer seed value
one_sample(x = c(-1, 1, 2), seed = 42)
Run the code above in your browser using DataLab