Skip to content

Add dedicated Number of Factors/Components analysis#359

Open
juliuspfadt wants to merge 4 commits into
jasp-stats:masterfrom
juliuspfadt:feature/number-of-factors-analysis
Open

Add dedicated Number of Factors/Components analysis#359
juliuspfadt wants to merge 4 commits into
jasp-stats:masterfrom
juliuspfadt:feature/number-of-factors-analysis

Conversation

@juliuspfadt

@juliuspfadt juliuspfadt commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

New analysis: Number of Factors/Components

  • Consolidates parallel analysis (PC- and FA-based), the eigenvalue criterion, and the scree plot into one dedicated analysis, usable for both EFA and PCA decisions.

  • Provides a summary table with suggested retention numbers from each method side-by-side.

  • The eigenvalue/PA-based factor count options are removed from both analyses. The number of factors/components is now set manually, with an info tip pointing users to the new analysis.

  • This removes the ambiguity of running a full factor model and factor retention simultaneously.

  • fixes [Feature Request]: Document if the Eigenvalue criterion is based on the principal component jasp-issues#3970:
    Previously the eigenvalue criterion always used PC eigenvalues (pc.values), even when FA-based parallel analysis was selected. This caused confusing results in EFA where factors with factor eigenvalues < 1 were retained because the threshold was applied to PC eigenvalues.
    Now the eigenvalue criterion uses PC eigenvalues when PC-based PA is selected and factor eigenvalues when FA-based PA is selected.
    A footnote on the summary table states which eigenvalue type was used (e.g., "Eigenvalue criterion based on factor eigenvalues.").
    The info text for the threshold field explains the link to the PA method selection.

  • For testing:
    test.jasp.zip

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

👋 Friendly reminder: It looks like NEWS.md wasn't updated in this Pull Request.

If your changes include bug fixes, new features, or UI tweaks, please consider adding a quick note to the # jaspYourModule (development version) section so our users know about your awesome work! (If this is just a minor typo fix, feel free to ignore this message.)

juliuspfadt and others added 4 commits July 5, 2026 21:14
…s analysis

- new analysis numberOfFactors: parallel analysis (PC/FA), eigenvalue
  threshold, summary table, PA table, scree plot; fa.parallel runs once,
  cached in state
- EFA/PCA: retention reduced to manual IntegerField; PA table + scree
  plot options removed; dead code deleted
- Upgrades.qml: remove stale options, msg pointing to new analysis
- tests: PA/scree tests moved to test-numberoffactors.R; EFA/PCA tests
  use explicit manual counts (values unchanged); PA sim values need
  regeneration on first run (single fa.parallel call changes RNG path)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…actor count

- PA sim values + suggestion regenerated (single seeded fa.parallel run)
- orderLoadingsBy test: manualNumberOfFactors = 3 (was PA default)
- new snapshot scree-plot-pc.svg (needs manual inspection)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@juliuspfadt juliuspfadt force-pushed the feature/number-of-factors-analysis branch from 9cf6ee5 to 832dad6 Compare July 5, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Document if the Eigenvalue criterion is based on the principal component

1 participant