solved Problem 1. A permutation test for a difference of medians
Problem 1. A permutation test for a difference of medians (instead of a difference of means) can be performed using twoSamplePermutationTestLocation() in package EnvStats by including the following argument: fcn=”median”.After using library(EnvStats) and attach(mtcars), use twoSamplePermutationTestLocation() with arguments of fcn =”median” and seed = 1 to perform a permutation test for the difference of medians […]