https://github.com/p-gw/factorrotations.jl
Rotation methods for factor analysis and principal component analysis in Julia
https://github.com/p-gw/factorrotations.jl
factor-analysis julia psychometrics
Last synced: 4 months ago
JSON representation
Rotation methods for factor analysis and principal component analysis in Julia
- Host: GitHub
- URL: https://github.com/p-gw/factorrotations.jl
- Owner: p-gw
- License: mit
- Created: 2024-01-03T08:21:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T10:40:03.000Z (almost 2 years ago)
- Last Synced: 2024-10-19T05:17:54.672Z (over 1 year ago)
- Topics: factor-analysis, julia, psychometrics
- Language: Julia
- Homepage: https://p-gw.github.io/FactorRotations.jl/
- Size: 917 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FactorRotations.jl
[](https://p-gw.github.io/FactorRotations.jl/stable/)
[](https://p-gw.github.io/FactorRotations.jl/dev/)
[](https://github.com/p-gw/FactorRotations.jl/actions/workflows/CI.yml?query=branch%3Amain)
[](https://codecov.io/gh/p-gw/FactorRotations.jl)
[FactorRotations.jl](https://github.com/p-gw/FactorRotations.jl) implements factor rotations by the gradient projections algorithms described
in Bernaards & Jennrich (2005).
## Installation
To install FactorRotations.jl you can use the Julia package manager,
```julia
] add FactorRotations
```
## Getting started
FactorRotations.jl provides methods to rotate factor loading matrices, e.g. from
exploratory factor analysis or principle component analysis.
Assume you aquired a factor loading matrix `L` then you can rotate the matrix by calling
the `rotate` function. The `rotate` function takes the factor loading matrix as the first
argument and an instance of a rotation method as the second argument.
```julia
L = [
0.830 -0.396
0.818 -0.469
0.777 -0.470
0.798 -0.401
0.786 0.500
0.672 0.458
0.594 0.444
0.647 0.333
]
rotate(L, Varimax())
```
For a complete list of available methods see the [Rotation Methods](https://github.com/p-gw/FactorRotations.jl/rotation_methods.jl) section of the documentation.
For a fully worked example see the [Guides](https://github.com/p-gw/FactorRotations.jl/guides/index.html) section of the documentation.
# References
Bernaards, C. A., & Jennrich, R. I. (2005). Gradient projection algorithms and software for arbitrary rotation criteria in factor analysis. *Educational and psychological measurement, 65*(5), 676-696.