The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

OptimalFactor: Item Selection in Factor Analysis by Boosting and Specification Search

Provides an iterative optimization algorithm for exploratory and confirmatory factor analysis that follows a boosting approach inspired by machine learning. It uses a composite fit index whose weights adapt to the degrees of freedom and the sample size, following Kenny and McCoach (2003) <doi:10.1207/S15328007SEM1003_1> and Shi, Lee and Maydeu-Olivares (2019) <doi:10.1177/0013164418783530>. It detects and removes problematic items (Heywood cases, cross-loadings, low loadings) with greedy or global search strategies, checks interfactor correlations, and supports ordinal data with WLSMV estimation and several rotation methods. A heuristic specification search for confirmatory models (MacCallum, 1986 <doi:10.1037/0033-2909.100.1.107>) explores move, drop and covariance operations across seed configurations. It also evaluates the resampling stability of the item selection, the recovery of a known or theoretical structure, and offers an optional conceptual analysis of removed items through a large language model service.

Version: 1.5.0
Depends: R (≥ 4.0.0)
Imports: lavaan, psych, dplyr, tidyr, ggplot2, stringr, parallel, stats, utils
Suggests: testthat (≥ 3.0.0), httr, jsonlite, R.utils, knitr, rmarkdown, semTools
Published: 2026-10-24
DOI: 10.32614/CRAN.package.OptimalFactor
Author: Jose Ventura-Leon ORCID iD [aut, cre]
Maintainer: Jose Ventura-Leon <jventuraleon at gmail.com>
BugReports: https://github.com/jventural/OptimalFactor/issues
License: GPL (≥ 3)
URL: https://github.com/jventural/OptimalFactor, https://jventural.github.io/OptimalFactor/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: OptimalFactor results

Documentation:

Reference manual: OptimalFactor.html , OptimalFactor.pdf
Vignettes: Introduction to OptimalFactor (source, R code)
EFA-Boosting Algorithm (source, R code)

Downloads:

Package source: OptimalFactor_1.5.0.tar.gz
Windows binaries: r-devel: OptimalFactor_1.5.0.zip, r-release: OptimalFactor_1.5.0.zip, r-oldrel: OptimalFactor_1.5.0.zip
macOS binaries: r-release (arm64): OptimalFactor_1.5.0.tgz, r-oldrel (arm64): OptimalFactor_1.5.0.tgz, r-release (x86_64): OptimalFactor_1.5.0.tgz, r-oldrel (x86_64): OptimalFactor_1.5.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=OptimalFactor to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.