nsprcomp
0.5.1-2Non-Negative and Sparse PCA
Overview
Two methods for performing a constrained principal component analysis (PCA), where non-negativity and/or sparsity constraints are enforced on the principal axes (PAs). The function 'nsprcomp' computes one principal component (PC) after the other. Each PA is optimized such that the corresponding PC has maximum additional variance not explained by the previous components. In contrast, the function 'nscumcomp' jointly computes all PCs such that the cumulative variance is maximal. Both functions have the same interface as the 'prcomp' function from the 'stats' package (plus some extra parameters), and both return the result of the analysis as an object of class 'nsprcomp', which inherits from 'prcomp'. See https://sigg-iten.ch/learningbits/2013/05/27/nsprcomp-is-on-cran/ and Sigg et al. (2008) doi:10.1145/1390156.1390277 for more details.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 73%
- Return-value docs
- 60%
- References docs
- 40%
Downloads
Repository
Stars over time
Forks over time
Issues over time
Repository practices
Checks run against github.com/chrsigg/nsprcomp on 2026-08-23.
No development-tooling practices detected in the upstream repository.
Dependencies
Code & Tests
People & History
6 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.5.1-2Latest
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.52014-07-17 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.4.12013-09-22 · diff ↗
Package metadata
- First published
- 2013-04-16
- Total releases
- 6 / 13 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 20 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nsprcomp")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.