I want to make a function that uses the Shapiro-Wilk test, but I'm not sure how I should go about using the Normal distribution to calculate the constant that is multiplied with the order statistic in the numerator.
http://en.wikipedia.org/wiki/Shapiro%E2%80%93Wilk_test
Is there anyone who can give direction on this?