Andy added a bit of code

found overall averages and for each of four subgroups.