Generate quantiles statistics for p.