p-gw / FactorRotations.jl

Rotation methods for factor analysis and principal component analysis in Julia
https://p-gw.github.io/FactorRotations.jl/
MIT License
7 stars 2 forks source link

Implement `reflect` #53

Closed p-gw closed 7 months ago

p-gw commented 7 months ago

This pull request implements reflect and reflect! functions, as well as the keyword argumement reflect to rotate.

Reflect modifies the rotated loading matrix by swapping signs columnwise such that the sum of all factor loadings is non-negative.

This is a breaking change, since the default is reflect = true in rotate.

closes #50 closes #52

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.68%. Comparing base (183e116) to head (c2b5ef2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #53 +/- ## ========================================== + Coverage 91.44% 91.68% +0.24% ========================================== Files 22 23 +1 Lines 444 457 +13 ========================================== + Hits 406 419 +13 Misses 38 38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.