Skip to content

sparsepca

0.1.2

Sparse Principal Component Analysis (SPCA)

5packages depend
58.9Kdownloads / year
0.0%test coverage
11/13checks pass

Overview

About
Maintained by N. Benjamin ErichsonFirst published 2018-04-111 releasesCRAN page ↗GitHub ↗

Sparse principal component analysis (SPCA) attempts to find sparse weight vectors (loadings), i.e., a weight vector with only a few 'active' (nonzero) values. This approach provides better interpretability for the principal components in high-dimensional data settings. This is, because the principal components are formed as a linear combination of only a few of the original variables. This package provides efficient routines to compute SPCA. Specifically, a variable projection solver is used to compute the sparse solution. In addition, a fast randomized accelerated SPCA routine and a robust SPCA routine is provided. Robust SPCA allows to capture grossly corrupted entries in the data. The methods are discussed in detail by N. Benjamin Erichson et al. (2018) arXiv:1804.00341.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.27
0.0%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-03-10
    9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

58.9K
CRAN downloads in the past year
Rank #1,955 · ~161/day · ~4.9K/mo
Daily download trend is not available in this view yet.
3.1K30 days
11.4K90 days
58.9K1 year
Compare downloads with other packages →
Also on225 r2u13 autocran1.7K conda_forge

Repository

Repository
72Stars
10Forks
2Open issues
0Open PRs
0Releases
46Commits
3Contributors
spcapcadimensionality-reductiondimension-reduction
46 commits · Last activity 2018-04-07 · 0% stars, 30d

Stars over time

2025-08-05 · 692026-07-07 · 72

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/erichson/spca on 2026-08-09.

Continuous integration (1)
Travis CI
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none

Code & Tests

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (3)
no longer listed · 0.1.2
no longer listed · 0.1.2
no longer listed · 0.1.2
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2018-04-11
Total releases
1 / 8 yrs
License
GPL (>= 3) OSI
Download size
8.1 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sparsepca")

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sparsepca version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy