Skip to content

SANple

0.2.0

Fitting Shared Atoms Nested Models via Markov Chains Monte Carlo

0packages depend
136Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Francesco DentiFirst published 2023-10-103 releasesCRAN page ↗GitHub ↗

Estimate Bayesian nested mixture models via Markov Chain Monte Carlo methods. Specifically, the package implements the common atoms model (Denti et al., 2023), and hybrid finite-infinite models. All models use Gaussian mixtures with a normal-inverse-gamma prior distribution on the parameters. Additional functions are provided to help analyzing the results of the fitting procedure. References: Denti, Camerlenghi, Guindani, Mira (2023) doi:10.1080/01621459.2021.1933499, D’Angelo, Denti (2024) doi:10.1214/24-BA1458.

Install

Health

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
4
Dependencies · direct
Check history
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-09
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

136K
CRAN downloads in the past year
Rank #1,685 · ~373/day · ~11.3K/mo
Daily download trend is not available in this view yet.
26630 days
17.6K90 days
136K1 year
Compare downloads with other packages →
Also on435 r2u

Repository

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Imports (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
C++ 1,376 (40%)R 1,308 (38%)Rd 698 (20%)C 97 (3%)
Code characteristics
Object systems
S33
Cyclomatic complexity
4.0 median / 25 max
Documented parameters
66%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

38 5 exported

Complexity

7.7 avg / 25 max

Call network

38 nodes / 27 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author, Copyright holder
Copyright holders (1)
Author, Copyright holder
Release timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0Latest
    2025-09-24 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    2024-06-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.0
    2023-10-10
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-10-10
Total releases
3 / 3 yrs
License
MIT + file LICENSE OSI
Download size
332 KB
Installed size
not tracked yet
With dependencies
not tracked yet