Package: scorematchingad 0.0.64

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.64.tar.gz
scorematchingad_0.0.64.tar.gz(r-4.5-noble)scorematchingad_0.0.64.tar.gz(r-4.4-noble)
scorematchingad.pdf |scorematchingad.html
scorematchingad/json (API)
NEWS

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

Peer review:

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

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

39 exports 0.09 score 22 dependencies 88 downloads

Last updated 8 days agofrom:eb10754455

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:codaellipsisFixedPointlatticeMASSMatrixMatrixModelsmcmcMCMCpacknloptrnumDerivoptimxpracmaquantregR6rbibutilsRcppRcppEigenRdpackrlangSparseMsurvival

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