interval function

Extract summary statistics