Skip to content

dapper

1.1.0

Data Augmentation for Private Posterior Estimation

1packages depend
4.8Kdownloads / year
92.5%test coverage
13/13checks pass

Overview

About
Maintained by Kevin EngFirst published 2024-07-093 releasesCRAN page ↗GitHub ↗

A data augmentation based sampler for conducting privacy-aware Bayesian inference. The dapper_sample() function takes an existing sampler as input and automatically constructs a privacy-aware sampler. The process of constructing a sampler is simplified through the specification of four independent modules, allowing for easy comparison between different privacy mechanisms by only swapping out the relevant modules. Probability mass functions for the discrete Gaussian and discrete Laplacian are provided to facilitate analyses dealing with privatized count data. The output of dapper_sample() can be analyzed using many of the same tools from the 'rstan' ecosystem. For methodological details on the sampler see Ju et al. (2022) doi:10.48550/arXiv.2206.00710, and for details on the discrete Gaussian and discrete Laplacian distributions see Canonne et al. (2020) doi:10.48550/arXiv.2004.00010.

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.32
92.5%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 31 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
100%
References docs
50%

Downloads

4.8K
CRAN downloads in the past year
Rank #17,995 · ~13/day · ~400/mo
Daily download trend is not available in this view yet.
22530 days
65490 days
4.8K1 year
Compare downloads with other packages →
Also on126 r2u15 autocran

Repository

Repository
2Stars
0Forks
3Open issues
0Open PRs
0Releases
162Commits
2Contributors
162 commits · Last activity 2026-02-01

Stars over time

2024-11-07 · 22026-07-07 · 2

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/mango-empire/dapper on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 757 (71%)Rd 313 (29%)
Code characteristics
Object systems
S32
Cyclomatic complexity
2.5 median / 8 max
Test cases
8 / 0.32 per code line

Test coverage

Line coverage

92%

Expression

91.7%

Tests / Examples

92.5% / 92% ex

Functions

12 6 exported

Complexity

3.4 avg / 8 max

Call network

12 nodes / 2 edges

Loading call graph…

Lowest coverage

12 functions
FunctionCycloCoverage
plot.dpout10%
summary.dpout10%
ddlaplace exp288%
ddnorm exp289%
dapper_sample exp392%
new_dpout292%

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package 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
  • 1.1.0Latest
    2026-02-02 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.1
    2024-10-29 · diff ↗
  • 1.0.0
    2024-07-09
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-07-09
Total releases
3 / 2 yrs
License
MIT + file LICENSE OSI
Download size
11 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →