Package: bifactory Title: (Bifactor) ESEM with Continuous (MLR) or Ordered (WLSMV) Data Version: 0.5.0 Authors@R: person(given = "Leon T.", family = "De Beer", email = "leondb@gmail.com", role = c("aut", "cre")) Description: Fits bifactor Exploratory Structural Equation Models (B-ESEM), together with standard ESEM and Confirmatory Factor Analysis (CFA), for continuous and ordered-categorical data. Continuous models use 'lavaan' native 'efa()' blocks (MLR). Ordered-categorical ESEM defaults to 'lavaan' WLSMV; ordered B-ESEM uses a custom diagonally weighted least squares (DWLS) path with polychoric correlations from 'psych', rotation-delta standard errors via 'numDeriv', and a mean- and variance-adjusted chi-square. Target, geomin, and oblimin rotations use 'GPArotation'; the bifactor ESEM approach follows Morin, Arens and Marsh (2016) . Additional features include multi-group measurement invariance (configural through strict, with partial invariance), ESEM-within-CFA conversion, McDonald's omega reliability suite, and the Mehrvarz and Rouder (2026) alignment ratio check for ICM-CFA misspecification. An optional 'MplusAutomation' interface allows side-by-side comparison with 'Mplus' output. License: AGPL-3 URL: https://github.com/leondebeer/bifactory BugReports: https://github.com/leondebeer/bifactory/issues Encoding: UTF-8 Depends: R (>= 4.1.0) Imports: lavaan (>= 0.6-21), GPArotation, psych, MASS, numDeriv, stats, utils, graphics, methods Suggests: MplusAutomation, openxlsx2, testthat (>= 3.0.0) Config/testthat/edition: 3 RoxygenNote: 7.3.3 Repository: https://leondebeer.r-universe.dev Date/Publication: 2026-06-30 10:04:32 UTC RemoteUrl: https://github.com/leondebeer/bifactory RemoteRef: HEAD RemoteSha: 2366c53ca0839ef7dfbaa143154d330f24ba5d5d NeedsCompilation: no Packaged: 2026-07-12 08:05:54 UTC; root Author: Leon T. De Beer [aut, cre] Maintainer: Leon T. De Beer