Repository navigation
Principal axis factor analysis and rotation - #4161
Conversation
|
rebase looks good from what I can see on github |
1 similar comment
| summ.add_dict({'': 'Pre-rotated loadings'}) | ||
| summ.add_df(loadings_no_rot) | ||
| summ.add_dict({'': ''}) | ||
| if self.rotation is not None: |
There was a problem hiding this comment.
BUG from renamings
self.rotation -> self.rotation method
also on line 318
summary() needs a smoke test.
If the result is stable and doesn't change on repeated runs, then the full summary string could be tested as equal to a saved summary.
|
@yl565 Can you add the R commands for producing the reference numbers in the unit tests to the test module? I'm trying out an example from Steiger (using factanal and fa.promax) http://www.statpower.net/Content/312/Handout/Exploratory%20Factor%20Analysis%20with%20R.pdf The results look sensitive to algorithmic details, and it's better to have the record for how the reference numbers were created, and which R function and which options correspond to our solution. |
|
I added the R code in docstrings. I have to flip the sign on some of the loading vectors to be able to match the results though. |
|
Can you amend (and force push) the last commit to change the docstring of the unit test function to code comments with |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4161 +/- ##
==========================================
+ Coverage 79.3% 79.38% +0.07%
==========================================
Files 546 554 +8
Lines 81807 82603 +796
Branches 9268 9428 +160
==========================================
+ Hits 64880 65572 +692
- Misses 14828 14883 +55
- Partials 2099 2148 +49
Continue to review full report at Codecov.
|
69d6581 to
a130009
Compare
|
OK, I amended the last comit |
|
all green, I merge this but still needs followup (api, rst, check docstring rendering, ...) It's a good first part of factor analysis and includes rotation. @yl565 Thank you |
|
Thanks @josef-pkt |
Continuation of #3294