   <h1>Robust Permutation Test</h1>
    
    </div>

    
    <p>This function considers the general problem of inference from the permutation distribution when comparing parameters from k populations. The test statistics will be based on the difference of estimators that are asymptotically linear. For illustrative purposes we will consider here the 2 sample case, but the function works for k-samples.</p>
<p>Difference of means: Here, the null hypothesis is of the form \(H_0: \mu(P)-\mu(Q)=0\), and the corr