how to get Proportion Explained, RMSR and chi-squared?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at the FactorAnalyzer(n_factors=3, rotation="varimax", method="principal") entry point and compare its existing SS loadings, Proportion Var, and Cumulative Var results with the supplied R output. Review how the library exposes fit statistics, then determine what is needed for Proportion Explained, RMSR, chi-squared, and the sufficiency hypothesis; done means these values are available and agree with the example.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Dataset:
R code:
fan <- principal(ifanmot[,1:42],nfactors=3,rotate="varimax")
print(fan,cut=.5,sort=TRUE)
R output:
Principal Components Analysis
Call: principal(r = ifanmot[, 1:42], nfactors = 3, rotate = "varimax")
Standardized loadings (pattern matrix) based upon correlation matrix
RC1 RC2 RC3
SS loadings 9.63 5.53 4.96
Proportion Var 0.23 0.13 0.12
Cumulative Var 0.23 0.36 0.48
Proportion Explained 0.48 0.27 0.25
Cumulative Proportion 0.48 0.75 1.00
Mean item complexity = 1.7
Test of the hypothesis that 3 components are sufficient.
The root mean square of the residuals (RMSR) is 0.06
with the empirical chi square 2531.01 with prob < 1.2e-194
Fit based upon off diagonal values = 0.97
Describe the solution you'd like
Using FactorAnalyzer(n_factors=3, rotation="varimax", method="principal") in Python I know how to get SS loadings, Proportion Var, and Cumulative Var and I get the same values as with R.
I do not know how to get Proportion Explained (and Cumulative Proportion would be nice, although I can compute that). Proportion Explained would be very useful to assess the performance of the PCA. But I can't get it from the Python library.
Same question for the hypothesis that 3 components are sufficient, and the RMSR and chi-squared.
- Dominant language
- Python
- Stars
- 6
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EducationalTestingService/factor_analyzer
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
EducationalTestingService/factor_analyzer#148 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
EducationalTestingService/factor_analyzer#147 · 1 reaction ·
-
Order of variables when DF is fed to fit with CFA: either document or actually use the column names? Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EducationalTestingService/factor_analyzer#146 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
EducationalTestingService/factor_analyzer#145 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in EducationalTestingService/factor_analyzer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-connect#1057 ·