runstests function

Runs Tests around the mean or the median