statList function

Calculate statistics for levels of factors