Calculates full sample mean and standard deviation given subgroup means and standard deviations