{
  "_id": "6a1ef0edb401979e734133a7",
  "Package": "aghq",
  "Type": "Package",
  "Title": "Adaptive Gauss Hermite Quadrature for Bayesian Inference",
  "Version": "0.4.3",
  "Author": "Alex Stringer",
  "Maintainer": "Alex Stringer <alex.stringer@uwaterloo.ca>",
  "Description": "Adaptive Gauss Hermite Quadrature for Bayesian inference.\nThe AGHQ method for normalizing posterior distributions and\nmaking Bayesian inferences based on them. Functions are\nprovided for doing quadrature and marginal Laplace\napproximations, and summary methods are provided for making\ninferences based on the results. See Stringer (2021).\n\"Implementing Adaptive Quadrature for Bayesian Inference: the\naghq Package\" <arXiv:2101.04468>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.1",
  "VignetteBuilder": "utils",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://awstringer1.r-universe.dev",
  "Date/Publication": "2024-02-28 14:47:03 UTC",
  "RemoteUrl": "https://github.com/awstringer1/aghq",
  "RemoteRef": "HEAD",
  "RemoteSha": "5c320d26b23da7ad6dc855a083efce980a029b42",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 08:15:15 UTC",
    "User": "root"
  },
  "MD5sum": "afa7496977bdbbcb45921534e3a166ed",
  "_user": "awstringer1",
  "_type": "src",
  "_file": "aghq_0.4.3.tar.gz",
  "_fileid": "9e342984daf840bfae68b796cde2397f3252e00c4ce30d865ebf5c36cc6a091a",
  "_filesize": 409297,
  "_sha256": "9e342984daf840bfae68b796cde2397f3252e00c4ce30d865ebf5c36cc6a091a",
  "_created": "2026-05-19T08:15:15.000Z",
  "_published": "2026-06-02T15:04:13.837Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79102572802,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7078303543"
    },
    {
      "job": 79102573022,
      "time": 172,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7078301784"
    },
    {
      "job": 79102572930,
      "time": 266,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7078319828"
    },
    {
      "job": 79102573162,
      "time": 180,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7078293595"
    },
    {
      "job": 79102571796,
      "time": 183,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7078242731"
    },
    {
      "job": 79102571730,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361572511"
    },
    {
      "job": 79102572661,
      "time": 139,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7078291835"
    },
    {
      "job": 79102574216,
      "time": 141,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7078291412"
    },
    {
      "job": 79102572738,
      "time": 125,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7078286249"
    }
  ],
  "_buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/awstringer1/aghq",
  "_commit": {
    "id": "5c320d26b23da7ad6dc855a083efce980a029b42",
    "author": "awstringer1 <awstringer@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #8 from eborgnine/master\n\nsymmetric matrix",
    "time": 1709131623
  },
  "_maintainer": {
    "name": "Alex Stringer",
    "email": "alex.stringer@uwaterloo.ca",
    "login": "awstringer1",
    "description": "",
    "uuid": 30163848
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "mvQuad",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "polynom",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "trustOptim",
      "role": "Suggests"
    },
    {
      "package": "trust",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "pracma",
      "role": "Suggests"
    },
    {
      "package": "utils",
      "role": "Suggests"
    },
    {
      "package": "TMB",
      "role": "Enhances"
    },
    {
      "package": "tmbstan",
      "role": "Enhances"
    },
    {
      "package": "EpiILMCT",
      "role": "Enhances"
    },
    {
      "package": "rstan",
      "role": "Enhances"
    }
  ],
  "_owner": "awstringer1",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 6,
  "_contributors": [
    {
      "user": "awstringer1",
      "count": 130,
      "uuid": 30163848
    },
    {
      "user": "eborgnine",
      "count": 28,
      "uuid": 5818919
    }
  ],
  "_userbio": {
    "uuid": 30163848,
    "type": "user",
    "name": "awstringer1"
  },
  "_downloads": {
    "count": 312,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/aghq"
  },
  "_devurl": "https://github.com/awstringer1/aghq",
  "_searchresults": 84,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/aghq.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/awstringer1/aghq",
  "_realowner": "awstringer1",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-01-18"
    },
    {
      "version": "0.2.0",
      "date": "2021-05-10"
    },
    {
      "version": "0.2.1",
      "date": "2021-05-13"
    },
    {
      "version": "0.3.0",
      "date": "2021-11-05"
    },
    {
      "version": "0.3.1",
      "date": "2021-11-07"
    },
    {
      "version": "0.4.0",
      "date": "2022-03-07"
    },
    {
      "version": "0.4.1",
      "date": "2023-06-02"
    }
  ],
  "_exports": [
    "adaptive_nested_quadrature",
    "aghq",
    "compute_moment",
    "compute_pdf_and_cdf",
    "compute_quantiles",
    "default_control",
    "default_control_marglaplace",
    "default_control_tmb",
    "default_transformation",
    "get_hessian",
    "get_log_normconst",
    "get_mode",
    "get_nodesandweights",
    "get_numquadpoints",
    "get_opt_results",
    "get_param_dim",
    "get_quadtable",
    "get_shift",
    "interpolate_marginal_posterior",
    "laplace_approximation",
    "make_moment_function",
    "make_numeric_moment_function",
    "make_transformation",
    "marginal_laplace",
    "marginal_laplace_tmb",
    "marginal_posterior",
    "nested_quadrature",
    "normalize_logpost",
    "optimize_theta",
    "sample_marginal",
    "validate_control",
    "validate_moment",
    "validate_transformation"
  ],
  "_datasets": [
    {
      "name": "gcdata",
      "title": "Globular Clusters data for Milky Way mass estimation",
      "object": "gcdata",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "RA",
        "DEC",
        "PMra",
        "PMdec",
        "Vlos",
        "plx",
        "Rgc",
        "Xgc",
        "Ygc",
        "Zgc",
        "cosphi",
        "sinphi",
        "costheta",
        "sintheta",
        "ePMra",
        "ePMdec",
        "eVlos",
        "eRgc",
        "FullName",
        "PMsource",
        "Rsun",
        "Cat",
        "Type",
        "cospsi",
        "included"
      ],
      "rows": 70,
      "table": true,
      "tojson": true
    },
    {
      "name": "gcdatalist",
      "title": "Transformed Globular Clusters data",
      "object": "gcdatalist",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "aghq",
      "title": "Adaptive Gauss-Hermite Quadrature",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "aghq"
      ]
    },
    {
      "page": "compute_moment",
      "title": "Compute moments",
      "concept": [
        "summaries moments"
      ],
      "topics": [
        "compute_moment",
        "compute_moment.aghq",
        "compute_moment.default",
        "compute_moment.list"
      ]
    },
    {
      "page": "compute_pdf_and_cdf",
      "title": "Density and Cumulative Distribution Function",
      "concept": [
        "summaries"
      ],
      "topics": [
        "compute_pdf_and_cdf",
        "compute_pdf_and_cdf.aghq",
        "compute_pdf_and_cdf.default",
        "compute_pdf_and_cdf.list"
      ]
    },
    {
      "page": "compute_quantiles",
      "title": "Quantiles",
      "concept": [
        "summaries"
      ],
      "topics": [
        "compute_quantiles",
        "compute_quantiles.aghq",
        "compute_quantiles.default",
        "compute_quantiles.list"
      ]
    },
    {
      "page": "correct_marginals",
      "title": "Correct the posterior marginals of a fitted aghq object",
      "topics": [
        "correct_marginals"
      ]
    },
    {
      "page": "default_control",
      "title": "Default control arguments for 'aghq::aghq()'.",
      "topics": [
        "default_control"
      ]
    },
    {
      "page": "default_control_marglaplace",
      "title": "Default control arguments for 'aghq::marginal_laplace()'.",
      "topics": [
        "default_control_marglaplace"
      ]
    },
    {
      "page": "default_control_tmb",
      "title": "Default control arguments for 'aghq::marginal_laplace_tmb()'.",
      "topics": [
        "default_control_tmb"
      ]
    },
    {
      "page": "default_transformation",
      "title": "Default transformation",
      "concept": [
        "transformations"
      ],
      "topics": [
        "default_transformation"
      ]
    },
    {
      "page": "gcdata",
      "title": "Globular Clusters data for Milky Way mass estimation",
      "topics": [
        "gcdata"
      ]
    },
    {
      "page": "gcdatalist",
      "title": "Transformed Globular Clusters data",
      "topics": [
        "gcdatalist"
      ]
    },
    {
      "page": "get_hessian",
      "title": "Obtain the Hessian from an aghq object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_hessian"
      ]
    },
    {
      "page": "get_log_normconst",
      "title": "Obtain the log-normalizing constant from a fitted quadrature object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_log_normconst",
        "get_log_normconst.aghq",
        "get_log_normconst.default",
        "get_log_normconst.laplace",
        "get_log_normconst.marginallaplace",
        "get_log_normconst.numeric"
      ]
    },
    {
      "page": "get_mode",
      "title": "Obtain the mode from an aghq object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_mode"
      ]
    },
    {
      "page": "get_nodesandweights",
      "title": "Obtain the nodes and weights table from a fitted quadrature object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_nodesandweights",
        "get_nodesandweights.aghq",
        "get_nodesandweights.data.frame",
        "get_nodesandweights.default",
        "get_nodesandweights.laplace",
        "get_nodesandweights.list",
        "get_nodesandweights.marginallaplace"
      ]
    },
    {
      "page": "get_numquadpoints",
      "title": "Obtain the number of quadrature nodes used from an aghq object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_numquadpoints"
      ]
    },
    {
      "page": "get_opt_results",
      "title": "Obtain the optimization results from an aghq object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_opt_results",
        "get_opt_results.aghq",
        "get_opt_results.marginallaplace"
      ]
    },
    {
      "page": "get_param_dim",
      "title": "Obtain the parameter dimension from an aghq object",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "get_param_dim",
        "get_param_dim.aghq"
      ]
    },
    {
      "page": "interpolate_marginal_posterior",
      "title": "Interpolate the Marginal Posterior",
      "concept": [
        "summaries"
      ],
      "topics": [
        "interpolate_marginal_posterior"
      ]
    },
    {
      "page": "laplace_approximation",
      "title": "Laplace Approximation",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "laplace_approximation"
      ]
    },
    {
      "page": "make_moment_function",
      "title": "Moments of Positive Functions",
      "concept": [
        "moments"
      ],
      "topics": [
        "make_moment_function",
        "make_moment_function.aghqmoment",
        "make_moment_function.aghqtrans",
        "make_moment_function.character",
        "make_moment_function.default",
        "make_moment_function.function",
        "make_moment_function.list"
      ]
    },
    {
      "page": "make_numeric_moment_function",
      "title": "Compute numeric moments",
      "topics": [
        "get_shift",
        "make_numeric_moment_function"
      ]
    },
    {
      "page": "make_transformation",
      "title": "Marginal Parameter Transformations",
      "concept": [
        "transformations"
      ],
      "topics": [
        "make_transformation",
        "make_transformation.aghqtrans",
        "make_transformation.default",
        "make_transformation.list"
      ]
    },
    {
      "page": "marginal_laplace",
      "title": "Marginal Laplace approximation",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "marginal_laplace"
      ]
    },
    {
      "page": "marginal_laplace_tmb",
      "title": "AGHQ-normalized marginal Laplace approximation from a TMB function template",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "marginal_laplace_tmb"
      ]
    },
    {
      "page": "marginal_posterior",
      "title": "Marginal Posteriors",
      "concept": [
        "summaries"
      ],
      "topics": [
        "marginal_posterior",
        "marginal_posterior.aghq",
        "marginal_posterior.list"
      ]
    },
    {
      "page": "nested",
      "title": "Nested, sparse Gaussian quadrature in AGHQ",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "adaptive_nested_quadrature",
        "get_quadtable",
        "nested_quadrature"
      ]
    },
    {
      "page": "normalize_logpost",
      "title": "Normalize the joint posterior using AGHQ",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "normalize_logpost"
      ]
    },
    {
      "page": "optimize_theta",
      "title": "Obtain function information necessary for performing quadrature",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "optimize_theta"
      ]
    },
    {
      "page": "plot.aghq",
      "title": "Plot method for AGHQ objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "plot.aghq"
      ]
    },
    {
      "page": "print.aghq",
      "title": "Print method for AGHQ objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "print.aghq"
      ]
    },
    {
      "page": "print.aghqsummary",
      "title": "Print method for AGHQ summary objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "print.aghqsummary"
      ]
    },
    {
      "page": "print.laplace",
      "title": "Print method for AGHQ objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "print.laplace"
      ]
    },
    {
      "page": "print.laplacesummary",
      "title": "Print method for laplacesummary objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "print.laplacesummary"
      ]
    },
    {
      "page": "print.marginallaplacesummary",
      "title": "Summary statistics for models using marginal Laplace approximations",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "print.marginallaplacesummary"
      ]
    },
    {
      "page": "sample_marginal",
      "title": "Exact independent samples from an approximate posterior distribution",
      "concept": [
        "sampling"
      ],
      "topics": [
        "sample_marginal",
        "sample_marginal.aghq",
        "sample_marginal.marginallaplace"
      ]
    },
    {
      "page": "summary.aghq",
      "title": "Summary statistics computed using AGHQ",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "summary.aghq"
      ]
    },
    {
      "page": "summary.laplace",
      "title": "Summary method for Laplace Approximation objects",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "summary.laplace"
      ]
    },
    {
      "page": "summary.marginallaplace",
      "title": "Summary statistics for models using marginal Laplace approximations",
      "concept": [
        "quadrature"
      ],
      "topics": [
        "summary.marginallaplace"
      ]
    },
    {
      "page": "validate_control",
      "title": "Validate a control list",
      "topics": [
        "validate_control"
      ]
    },
    {
      "page": "validate_moment",
      "title": "Validate a moment function object",
      "concept": [
        "moments"
      ],
      "topics": [
        "validate_moment",
        "validate_moment.aghqmoment",
        "validate_moment.character",
        "validate_moment.default",
        "validate_moment.function",
        "validate_moment.list"
      ]
    },
    {
      "page": "validate_transformation",
      "title": "Validate a transformation object",
      "concept": [
        "transformations"
      ],
      "topics": [
        "validate_transformation",
        "validate_transformation.aghqtrans",
        "validate_transformation.default",
        "validate_transformation.list"
      ]
    }
  ],
  "_readme": "https://github.com/awstringer1/aghq/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "lattice",
    "Matrix",
    "mvQuad",
    "numDeriv",
    "polynom",
    "rlang",
    "statmod"
  ],
  "_vignettes": [
    {
      "source": "tmbstan.Rnw",
      "filename": "tmbstan.pdf",
      "title": "TMBstan example",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2024-02-28 14:47:03",
      "modified": "2024-02-28 14:47:03",
      "commits": 1
    }
  ],
  "_score": 5.878521795501206,
  "_indexed": true,
  "_nocasepkg": "aghq",
  "_universes": [
    "awstringer1"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-05-19T08:17:55.000Z",
      "distro": "noble",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "10e5a7ecf70c6faf43b4fac5e5e4e0865ce6cc75f49dc42072ac792d3bf815e5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-05-19T08:17:51.000Z",
      "distro": "noble",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "43b43818b834f0a2479e3b257189f4e467adbb5167d74cf52799df6bf2caa285",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-05-19T08:18:49.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "aff54fddc2e4fef92befc57226d94feb39cb4f0d519172a9ea299c3a2f8a1afb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-05-19T08:17:34.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "dd4badc8fc65475525db6c10c3680758e86c3124d5aae66261a06174d466688c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-19T08:17:13.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "744709966cf28d0a0973ffe8c11186b9c08e2e622f95d71a2037e49d965cfbbf",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-19T08:17:20.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "69fe947ae9541f64c38c1f3142ec0649b4ce1ab4dc212d0875da692e39bd739f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-19T08:16:54.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "d3e30db9b73db2f3f7da7131dea25811b5aec402dc47c657b27724eccffc525e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.3",
      "date": "2026-06-02T15:03:31.000Z",
      "commit": "5c320d26b23da7ad6dc855a083efce980a029b42",
      "fileid": "67cd2dd6c0a63a9884b67683be1b8c5035adf242f220ffa7414746f9a5f90595",
      "status": "success",
      "buildurl": "https://github.com/r-universe/awstringer1/actions/runs/26084840461"
    }
  ]
}