calc_pvals function

Calculate one-way test and pairwise tests