Skip to content

aghq

0.4.1

Adaptive Gauss Hermite Quadrature for Bayesian Inference

2packages depend
6.5Kdownloads / year
81.1%test coverage
0/13checks pass

Overview

About
Maintained by Alex StringerFirst published 2021-01-187 releasesCRAN page ↗

Adaptive Gauss Hermite Quadrature for Bayesian inference. The AGHQ method for normalizing posterior distributions and making Bayesian inferences based on them. Functions are provided for doing quadrature and marginal Laplace approximations, and summary methods are provided for making inferences based on the results. See Stringer (2021). "Implementing Adaptive Quadrature for Bayesian Inference: the aghq Package" arXiv:2101.04468.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE 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
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 3.4 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.56
81.1%
Coverage · measured lines
100%
Documentation · exports
None
Vignettes
Yes
README
7
Dependencies · direct
Check history
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

6.5K
CRAN downloads in the past year
Rank #10,614 · ~18/day · ~545/mo
Daily download trend is not available in this view yet.
44030 days
1K90 days
6.5K1 year
Compare downloads with other packages →
Also on204 r2u47 autocran

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (7)
methodsmvQuadMatrixrlangpolynomsplinesnumDeriv
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Code Composition
R 5,654 (62%)Rd 3,403 (38%)
Code characteristics
Object systems
S353
Cyclomatic complexity
1.0 median / 19 max
Test cases
5 / 0.56 per code line
Documented parameters
98%

Test coverage

Line coverage

81%

Expression

81.9%

Tests / Examples

81.1% / 61% ex

Functions

91 33 exported

Complexity

2.9 avg / 19 max

Call network

91 nodes / 116 edges

Loading call graph…

Lowest coverage

91 functions
FunctionCycloCoverage
marginal_laplace_tmb exp70%
compute_moment.default10%
compute_quantiles.aghq10%
compute_quantiles.list20%
get_nodesandweights.data.frame10%
get_nodesandweights.default10%

People & History

People (0)

Author records are not tracked yet for this package.

Release timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.1Latest
    2023-06-02 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.0
    2022-03-07 · diff ↗
  • 0.3.1
    2021-11-07 · diff ↗
  • 0.3.0
    2021-11-05 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.1
    2021-05-13 · diff ↗
  • 0.2.0
    2021-05-10 · diff ↗
  • 0.1.0
    2021-01-18
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-01-18
Total releases
7 / 5 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
17 KB / 2 files
Download size
101 KB
Installed size
not tracked yet
With dependencies
not tracked yet