Package: hornpa
Type: Package
Title: Horn's (1965) Test to Determine the Number of Components/Factors
Version: 1.1.1
Date: 2025-05-03
Maintainer: Francis Huang <huangf@missouri.edu>
Authors@R: c(person("Francis", "Huang",
  role = c('aut', 'cre'),
  email = "huangf@missouri.edu"))
Description: A stand-alone function that generates a user specified number of random datasets and computes eigenvalues using the random datasets (i.e., implements Horn's [1965, Psychometrika] parallel analysis <doi:10.1007/BF02289447>). Users then compare the resulting eigenvalues (the mean or the specified percentile) from the random datasets (i.e., eigenvalues resulting from noise) to the eigenvalues generated with the user's data. Can be used for both principal components analysis (PCA) and common/exploratory factor analysis (EFA). The output table shows how large eigenvalues can be as a result of merely using randomly generated datasets. If the user's own dataset has  actual eigenvalues greater than the corresponding eigenvalues, that lends support to retain that factor/component. In other words, if the i(th) eigenvalue from the actual data was larger than the percentile of the (i)th eigenvalue generated using randomly generated data, empirical support is provided to retain that factor/component. Horn, J. (1965). A rationale and test for the number of factors in factor analysis. Psychometrika, 32, 179-185.
License: GPL-3
RoxygenNote: 7.3.2
Encoding: UTF-8
NeedsCompilation: no
Packaged: 2025-05-03 16:57:14 UTC; flh3
Author: Francis Huang [aut, cre]
Repository: CRAN
Date/Publication: 2025-05-03 17:20:01 UTC
Built: R 4.6.0; ; 2026-04-26 19:50:48 UTC; unix
