Skip to content

scorematchingad

Score Matching Estimation by Automatic Differentiation

v0.1.6 · Nov 29, 2025 · GPL (>= 3)

Description

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.

Downloads

231

Last 30 days

19756th

592

Last 90 days

2.3K

Last year

Trend: +5.5% (30d vs prior 30d)

CRAN Check Status

7 NOTE
7 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (7 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘scorematchingad/libs/scorematchingad.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘scorematchingad/libs/scorematchingad.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'scorematchingad/libs/x64/scorematchingad.dll':
  Found non-API call to R: 'R_UnboundValue'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 32.6Mb
  sub-directories of 1Mb or more:
    cppad     9.4Mb
    include   4.6Mb
    libs     17.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 32.9Mb
  sub-directories of 1Mb or more:
    cppad     9.4Mb
    include   4.6Mb
    libs     18.2Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 17.0Mb
  sub-directories of 1Mb or more:
    cppad     9.5Mb
    include   4.7Mb
    libs      2.1Mb
NOTE r-patched-linux-x86_64

compiled code

File ‘scorematchingad/libs/scorematchingad.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 32.6Mb
  sub-directories of 1Mb or more:
    cppad     9.4Mb
    include   4.6Mb
    libs     17.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 32.9Mb
  sub-directories of 1Mb or more:
    cppad     9.4Mb
    include   4.6Mb
    libs     18.2Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 17.0Mb
  sub-directories of 1Mb or more:
    cppad     9.5Mb
    include   4.7Mb
    libs      2.1Mb

Dependency Network

Dependencies Reverse dependencies RcppEigen MCMCpack optimx FixedPoint Rdpack Rcpp rlang scorematchingad

Version History

new 0.1.6 Mar 10, 2026
updated 0.1.6 ← 0.1.4 diff Nov 29, 2025
updated 0.1.4 ← 0.1.1 diff Aug 31, 2025
updated 0.1.1 ← 0.0.67 diff Jan 7, 2025
updated 0.0.67 ← 0.0.64 diff Jul 24, 2024
updated 0.0.64 ← 0.0.60 diff Jun 26, 2024
new 0.0.60 May 20, 2024