R Observatory
Search

Spike-and-Slab Variational Bayes for Linear and Logistic Regression

install.packages("sparsevb")
CRAN 30-day downloads, method
250−23.1% down on the 30 days before, the worse direction

Implements variational Bayesian algorithms to perform scalable variable selection for sparse, high-dimensional linear and logistic regression models.

Full description

Implements variational Bayesian algorithms to perform scalable variable selection for sparse, high-dimensional linear and logistic regression models. Features include a novel prioritized updating scheme, which uses a preliminary estimator of the variational means during initialization to generate an updating order prioritizing large, more relevant, coefficients. Sparsity is induced via spike-and-slab priors with either Laplace or Gaussian slabs. By default, the heavier-tailed Laplace density is used. Formal derivations of the algorithms and asymptotic consistency results may be found in Kolyan Ray and Botond Szabo (JASA 2020) and Kolyan Ray, Botond Szabo, and Gabriel Clara (NeurIPS 2020).

Maintainer
Gabriel Clara
Licence
GPL (>= 3)
Latest release
24 Jan 2025
First release
15 Jan 2021

Compare with another package

More details
Releases
2
Needs compilation
Yes
Date
2025-1-23
RoxygenNote
7.1.1
Subjects (2) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("sparsevb")
APA
Clara, G., Ray, K., & Szabo, B. (2025). sparsevb: Spike-and-Slab Variational Bayes for Linear and Logistic
Regression (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.sparsevb
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 sparsevb version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.1.1
    Time taken
    136 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.1.1
    Time taken
    100 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.1.1
    Time taken
    123 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.1.1
    Time taken
    93 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    247 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.1.1
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    88 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    200 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    124 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    121 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.1.1
    Time taken
    24 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    89 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    174 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
22 Apr 2026OK14000
18 Apr 2026Error13001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
253−27.9% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

17,861 of 26,530

CRAN

250 downloads in the last 30 days

Rank
17,861 of 26,530
Change
−23.1% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

2 downloads in the last 30 days

Rank
14,902 of 30,526
Change
−88.2% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

1 downloads in the last 30 days

Rank
25,688 of 29,212
Change
−88.9% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
6
Dependent packages
0
Suggested by
0
Needs (6)
Installing it adds
13 packages, 9.3 MB of source
Of those, need compilation
8
Functions
14
Public exports
1
Lines of R code
229
Median complexity
1
Functions (14)
Size and composition

Lines by kind (888)

KindLinesShare
R code22926%
Documentation19322%
Compiled code46652%

Lines by language

LanguageLinesShare
C++37042%
R22926%
Rd19322%
C9611%

Languages are counted from file extensions.

Files
19
R functions
3
Compiled functions
11
Complexity
Median
1
Mean
5.67
Highest
15
Median lines per function
3
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
3
Calls
0
Unconnected
3
Groups
0
Growth (2 releases)
Total lines by release
883 on 15 Jan 2021888 on 24 Jan 2025
Release changes

The package was built and has no tests to run.

Lines of tests
0
Exports named in tests
0%
Test suite
Has tests
No
Test frameworks
No tests in this release
Test lines per line of code
0
Exports documented
100%
Arguments documented
93.8%
Return value documented
100%
Help pages with examples
50%
Examples run in checks
100%
Other documentation
README
No
Release notes file
No
Help pages
2
Lines of documentation
193

gclara / varpack on gitlab.com

Stars
0
Forks
0
Open issues
1
Last commit
23 Jan 2025
Activity
Commits
35
Open merge requests
0
Tagged releases
0
Latest tagged release
–
In development
The default branch showed an older version (0.1.0) than CRAN on 2026-10-25
Issues closed in
–
Merge requests closed in
–
Merge requests merged
100%
Created
3 Sep 2020
Licence file reads as
–
R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.1 current24 Jan 20254.4.2
0.1.015 Jan 20214.0.3