Formula Change

Updated my function based on the change to the formulas for test
statistics proposed by Myunghoon.