Select the number of significant principal components of a matrix via optimal hard thresholding (OHT)
eigengap.oht(covmat, nobs, maxcomp = NULL)
matrix to be decomposed
number of observations used to compute the covariance matrix
maximum number of eigenvalues to compute
Gavish, M., Donoho, D.L. (2014) The optimal hard thresholding for singular values is 4/sqrt(3). IEEE Transactions on Information Theory, 60(8): 5040--5053