calc_stats function

Calculate summary statistics for a variable