Skip to content

scorematchingad

0.1.6

Score Matching Estimation by Automatic Differentiation

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

Overview

About
Maintained by Kassel Liam HingeeFirst published 2024-05-216 releasesCRAN page ↗GitHub ↗

Hyvärinen's score matching (Hyvärinen, 2005) https://jmlr.org/papers/v6/hyvarinen05a.html is a useful estimation technique when the normalising constant for a probability distribution is difficult to compute. This package implements score matching estimators using automatic differentiation in the 'CppAD' library https://github.com/coin-or/CppAD and is designed for quickly implementing score matching estimators for new models. Also available is general robustification (Windham, 1995) https://www.jstor.org/stable/2346159. Already in the package are estimators for directional distributions (Mardia, Kent and Laha, 2016) doi:10.48550/arXiv.1604.08470 and the flexible Polynomially-Tilted Pairwise Interaction model for compositional data. The latter estimators perform well when there are zeros in the compositions (Scealy and Wood, 2023) doi:10.1080/01621459.2021.2016422, even many zeros (Scealy, Hingee, Kent, and Wood, 2024) doi:10.1007/s11222-024-10412-w. A partial interface to CppAD's ADFun objects is also available.

Install

Health

CRAN checks
13OK
Slowest check: 12.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.64
not tracked
Coverage
100%
Documentation · exports
10
Dependencies · direct
Check history
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 228 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
91%
Documented parameters
92%
Return-value docs
84%
References docs
30%

Downloads

2.4K
CRAN downloads in the past year
Rank #19,028 · ~7/day · ~201/mo
Daily download trend is not available in this view yet.
19630 days
62890 days
2.4K1 year
Compare downloads with other packages →
Also on549 r2u11 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
automatic-differentiationscore-matchingstatistical-inference
Last activity 2026-01-04

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/kasselhingee/scorematchingad on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Copyright holders (1)
Copyright holder
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.6Latest
    2025-11-30 · current release · diff ↗
  • 0.1.4
    2025-09-01 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    2025-01-08 · diff ↗
  • 0.0.67
    2024-07-25 · diff ↗
  • 0.0.64
    2024-06-27 · diff ↗
  • unarchivedReturned to CRAN
    2024-06-27
  • archivedRemoved from CRAN
    2024-06-14
    issues were not corrected in time
  • 0.0.60
    2024-05-21
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-05-21
Total releases
6 / 2 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
6.9 KB / 1 file
Download size
1.6 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →