The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
The l1rotation
package implements the l1-rotation
criterion of Freyaldenhoven
(2025) to simplify the loading matrix in factor models.
# Install from CRAN
install.packages("l1rotation")
# Install latest version from GitHub
install.packages("devtools")
::install_github("SimonFreyaldenhoven/l1rotation") devtools
Find a minimal example below. For more information see the package website, documentation and vignette.
library(l1rotation)
set.seed(916)
# Minimal example with 2 factors, where X is a 224 by 207 matrix
<- local_factors(X = example_data, r = 2)
lf
# Rerun with parallel processing
<- local_factors(X = example_data, r = 2, parallel = TRUE, n_cores = 10)
lf_lambdas
# Visualize Principal Component estimate of the loadings
$pc_plot lf
# Visualize l1-rotation loadings
$rotated_plot lf
Simon Freyaldenhoven. “Identification Through Sparsity in Factor Models: the l1-rotation criterion.” Philadelphia Fed Working Paper 20-25, February 2025.
Simon Freyaldenhoven, Ryan Kobler. “l1rotation
package.”
Code and data repository at https://github.com/SimonFreyaldenhoven/l1rotation, March
2025.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.