a small collection of functions to help with writing simple statistics scripts