pdt::AB_permutation_test(
as.factor(c(rep("A",20), rep("B",20))),
c(rnorm(20), rnorm(20)+2),
test_statistic="B-A",
test_statistic_function="mean",
reps_max=1000,
no_duplicates=FALSE,
show_plot=FALSE,
show_plot_header="")
Run the code above in your browser using DataLab