Changed formula for the grand mean in ds.quantile