Cross-validation to select the optimum rank for a reduced-rank approximation to multivariate data