Eigenvalues of the column-centred covariance (scree), the elbow (largest gap below the chord from first to last eigenvalue) and Horn's parallel analysis against Philox column permutations, with a Monte Carlo p-value for the second dimension.
References
Horn, J. L. (1965). A rationale and test for the number of factors in factor analysis. Psychometrika 30, 179-185. Cattell, R. B. (1966). The scree test for the number of factors. Multivariate Behavioral Research 1, 245-276.
Examples
Dimensionality(cbind(1:4, 2 * (1:4)), n_sim = 0)$share
#> [1] 1 0
