muStat Utility Functions