Package: scorematchingad 0.0.68

Kassel Liam Hingee

scorematchingad: Score Matching Estimation by Automatic Differentiation

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>.

Authors:Kassel Liam Hingee [aut, cre], Janice Scealy [aut], Bradley M. Bell [cph]

scorematchingad_0.0.68.tar.gz
scorematchingad_0.0.68.zip(r-4.5)scorematchingad_0.0.68.zip(r-4.4)scorematchingad_0.0.68.zip(r-4.3)
scorematchingad_0.0.68.tgz(r-4.4-x86_64)scorematchingad_0.0.68.tgz(r-4.4-arm64)scorematchingad_0.0.68.tgz(r-4.3-x86_64)scorematchingad_0.0.68.tgz(r-4.3-arm64)
scorematchingad_0.0.68.tar.gz(r-4.5-noble)scorematchingad_0.0.68.tar.gz(r-4.4-noble)
scorematchingad.pdf |scorematchingad.html
scorematchingad/json (API)
NEWS

# Install 'scorematchingad' in R:
install.packages('scorematchingad', repos = c('https://kasselhingee.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kasselhingee/scorematchingad/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • microbiome - 16s Microbiome Data for Soil-Transmitted Helminths

On CRAN:

automatic-differentiationscore-matchingstatistical-inference

3.90 score 1 scripts 170 downloads 39 exports 21 dependencies

Last updated 2 months agofrom:c0ec844b48. Checks:OK: 6 NOTE: 3. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 18 2024
R-4.5-win-x86_64NOTEOct 18 2024
R-4.5-linux-x86_64OKOct 18 2024
R-4.4-win-x86_64NOTEOct 18 2024
R-4.4-mac-x86_64OKOct 18 2024
R-4.4-mac-aarch64OKOct 18 2024
R-4.3-win-x86_64NOTEOct 18 2024
R-4.3-mac-x86_64OKOct 18 2024
R-4.3-mac-aarch64OKOct 18 2024

Exports:ADFunBinghambuildsmdtapecppad_closedcppad_searchcustomllcustomll_testdppievalllevaltapeFBppippi_cWppi_cW_autoppi_fromAstarppi_mmmmppi_parammatsppi_paramvecppi_robustppi_robust_alrgengammappi_smvaluesppi_toAstarquadratictape_partsrppirppi_egmodelrsymmetricmatrixsmvaluessmvalues_wsumtapeGradOffsettapeHessiantapeJacobiantapeLogJacDettapeSwaptestquadraticvMFvMF_robustWindhamWindham_populationinverseWindham_populationinverse_alternative

Dependencies:codaFixedPointlatticeMASSMatrixMatrixModelsmcmcMCMCpacknloptrnumDerivoptimxpracmaquantregR6rbibutilsRcppRcppEigenRdpackrlangSparseMsurvival

Readme and manuals

Help Manual

Help pageTopics
scorematchingad: Score Matching Estimation by Automatic Differentiationscorematchingad-package scorematchingad
A Class for Storing a CppAD Tape (ADFun) ObjectADFun
Score Matching Estimators for the Bingham DistributionBingham
Build CppAD Tapes for Score Matchingbuildsmdtape
Score Matching Estimator for Quadratic-Form Score Matching Discrepanciescppad_closed
Iterative Score Matching Estimator Using Conjugate-Gradient Descentcppad_search
Compile a custom log-likelihood function.customll customll_test
Improper Log-Density of the PPI Modeldppi
Evaluate a custom log-likelihood functionevalll
Evaluate a CppAD Tape Many Timesevaltape evaltape_wsum
Estimate the Fisher-Bingham DistributionFB
16s Microbiome Data for Soil-Transmitted Helminthsmicrobiome
Build New Tapes from Existing Tapesmoretapebuilders tapeGradOffset tapeHessian tapeJacobian tapeLogJacDet tapeSwap
Estimation of Polynomially-Tilted Pairwise Interaction (PPI) Modelppi ppi_smvalues
Quickly Generate a Vector of Windham Exponents for the PPI Modelppi_cW ppi_cW_auto
A PPI Score-Matching Marginal Moment Matching Estimator (dimension=3 only)ppi_mmmm
PPI Parameter Toolsppi_fromAstar ppi_parammats ppi_paramvec ppi_param_tools ppi_toAstar
Robustly Estimate Parameters of the PPI Distributionppi_robust ppi_robust_alrgengamma
Evaluate the Hessian and Gradient Offset of a Taped Quadratic Functionquadratictape_parts
Simulate from a PPI Modelrppi rppi_egmodel
Quickly Generate a Symmetric Matrix for Testing and Examplesrsymmetricmatrix
Introduction to Score Matchingscorematchingtheory
Compute Score Matching Discrepancy Value, Gradient, and Hessiansmvalues smvalues_wsum
Test Whether a CppAD Tape is a Quadratic Functiontestquadratic
Score Matching Estimator for the von-Mises Fisher DistributionvMF
Robust Fitting of von Mises FishervMF_robust
Windham Robustification of Point Estimators for Exponential Family DistributionsWindham
Inverse Transform for the Population Parameters Under Windham WeightsWindham_populationinverse Windham_populationinverse_alternative