Estimate the number of distant spikes based on the histogram of eigenvalues.
pca_nspike(eigval, breaks = "FD", nboot = 100)
Eigenvalues (squared singular values).
Same parameter as for hist()
. Default uses a robust version
of Scott's rule. You can also use "FD"
or nclass.FD
for a bit more bins.
Number of bootstrap replicates to estimate limits more robustly.
Default is 100
.
The estimated number of distant spikes.