Package: rolleigen 1.0.1

rolleigen: Rolling Eigenanalysis

Fast and efficient computation of rolling and expanding eigenanalysis for time-series data. The 'rolleigen' package decomposes the covariance matrix of the explanatory variables into eigenvalues and eigenvectors to perform principal component analysis (Pearson, 1901, <doi:10.1080/14786440109462720>; Hotelling, 1933, <doi:10.1037/h0071325>) and principal component regression (Massy, 1965, <doi:10.1080/01621459.1965.10480787>) over rolling and expanding windows. For each window, the eigenvalues and eigenvectors are computed from the covariance matrix and, optionally, ordered from the largest to smallest eigenvalue to summarize the directions of greatest variation in the data. A subset of leading components is then used to fit a regression that mitigates collinearity in the explanatory variables. Use cases include dimensionality reduction, factor extraction, and regression on collinear explanatory variables. The package supports rolling and expanding windows, weights, and handling of missing values via the min_obs, complete_obs, and na_restore arguments. The implementation uses the online and offline algorithms from the 'roll' package to compute rolling and expanding cross-products efficiently, with parallelism across columns and windows provided by 'RcppParallel'.

Authors:Jason Foster [aut, cre]

rolleigen_1.0.1.tar.gz
rolleigen_1.0.1.zip(r-4.7-x86_64)rolleigen_1.0.1.zip(r-4.7-arm64)rolleigen_1.0.1.zip(r-4.6-x86_64)rolleigen_1.0.1.zip(r-4.6-arm64)rolleigen_1.0.1.zip(r-4.5-x86_64)
rolleigen_1.0.1.tgz(r-4.6-x86_64)rolleigen_1.0.1.tgz(r-4.6-arm64)rolleigen_1.0.1.tgz(r-4.5-x86_64)rolleigen_1.0.1.tgz(r-4.5-arm64)
rolleigen_1.0.1.tar.gz(r-4.7-arm64)rolleigen_1.0.1.tar.gz(r-4.7-x86_64)rolleigen_1.0.1.tar.gz(r-4.6-arm64)rolleigen_1.0.1.tar.gz(r-4.6-x86_64)
rolleigen_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rolleigen/json (API)

# Install 'rolleigen' in R:
install.packages('rolleigen', repos = c('https://jasonjfoster.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jasonjfoster/rolleigen/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

algorithmseigenrcppopenblascppopenmp

4.35 score 3 stars 2 scripts 295 downloads 2 exports 4 dependencies

Last updated from:46716ab54d. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK100
linux-devel-x86_64OK151
source / vignettesOK223
linux-release-arm64OK147
linux-release-x86_64OK137
macos-release-arm64OK127
macos-release-x86_64OK291
macos-oldrel-arm64OK99
macos-oldrel-x86_64OK170
windows-devel-arm64OK238
windows-devel-x86_64OK149
windows-release-arm64OK246
windows-release-x86_64OK112
windows-oldrel-x86_64OK105
wasm-releaseOK116

Exports:roll_eigenroll_pcr

Dependencies:RcppRcppArmadilloRcppParallelroll