Skip to content

sparsepca

0.1.2Package record

Sparse Principal Component Analysis (SPCA)

4packages dependsuggested by 1
47.6Kdownloads / year
0.0%test coverage
11/13flavors OK

Overview

About

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
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘N. Benjamin Erichson <erichson@uw.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("N.", "Benjamin"),
                      family = "Erichson",
                      role = c("aut", "cre"),
                      email = "erichson@uw.edu"),
               person(given = "Peng",
                      family = "Zheng",
                      role = "aut"),
               person(given = "Sasha",
                      family = "Aravkin",
                      role = "aut"))
as necessary.

The Description field contains
  Erichson et al. (2018) <arXiv:1804.00341>.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

CRAN check page ↗

Slowest check: 1.4 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE9 OK, 5 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.2
README· In the repository, left out of the releaseVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
3
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
100%

Downloads

47.6K
CRAN downloads in the past year
Rank #2,121 · ~130/day · ~4K/mo
Daily download trend is not available in this view yet.
3.1K30 days
8.5K90 days
47.6K1 year
Compare downloads with other packages →
Also on283 r2u3 autocran1.7K conda_forge

Repository

72Stars
10Forks
0Open issues
0Open PRs
0Releases
72Commits
4Commit identities
spcapcadimensionality-reductiondimension-reduction
72 commits · Last activity 2026-10-18 · 0% stars, 30d · Default branch at 1.0.0, ahead of CRAN 0.1.2 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-08-20 · 702026-07-07 · 72
PracticesBeta

4 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/erichson/spca on 2026-10-21.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Contributing guide
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing sparsepca adds 1 package (0 with compiled code, 3.3 MB of source tarballs). Heaviest: rsvd 3.3 MB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
4direct
3indirect
Imports 4
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (from the free-text Author field) (3)

Maintainer since 0.1.2 (2018)

Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.2Latest
    2018-04-11 · current release
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

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

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-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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