{
  "_id": "6ad29ef162c1581dfb2fa114",
  "Package": "adlaplace",
  "Type": "Package",
  "Title": "Laplace Approximations Using Automatic Differentiation",
  "Version": "0.7.5",
  "Date": "2026-10-14",
  "Authors@R": "person(given=\"Patrick\", family=\"Brown\", email=\"patrick.borgnine@gmail.com\", role=c(\"aut\",\"cre\",\"cph\"))",
  "Maintainer": "Patrick Brown <patrick.borgnine@gmail.com>",
  "Description": "Computes Laplace-approximate maximum likelihood for\nhierarchical and latent Gaussian models. A formula interface\nspecifies observation densities (e.g. Gaussian, negative\nBinomial), fixed effects, and random terms (independent\neffects, smoothing terms). Customized response distributions\nand models for random effects can be specified through a\nlow-level interface or by writing interoperable packages.\nDerivatives are computed using automatic differentiation with\n'CppAD', and used in trust region optimization to find modes of\nrandom effects. Derivatives of the Laplace approximation of the\nlog-likelihood are computed using third order contractions and\nis compatible with custom atomics. The approach follows\nKristensen, Nielsen, Berg, Skaug, and Bell (2016)\n<doi:10.18637/jss.v070.i05>.",
  "License": "GPL (>= 2)",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "SystemRequirements": "OpenMP",
  "NeedsCompilation": "yes",
  "Collate": "'RcppExports.R' 'classes.R' 'density_data.R' 'ad_pack_ptr.R'\n'ad_pack.R' 'aghq_ff.R' 'obs_groups.R' 'model_data.R'\n'log_lik.R' 'fit.R' 'grad_obs_units.R' 'amip.R' 'deriv_scan.R'\n'dirichlet_multinom.R' 'effects.R' 'families.R' 'sim_fit.R'\n'fit_methods.R' 'fixed_terms.R' 'format_parameters.R'\n'germany-data.R' 'hessian_map.R' 'iid.R' 'iwp.R'\n'london-data.R' 'mvn_utils.R' 'prepare_model_rows.R' 'prior.R'\n'psd.R' 'replace_vars.R' 'rpoly.R' 'sim_iid.R'\n'takahashi_davis.R' 'term_data_setup.R' 'zzz.R'",
  "LazyData": "true",
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://eborgnine.r-universe.dev",
  "Date/Publication": "2026-10-16 21:08:16 UTC",
  "RemoteUrl": "https://github.com/eborgnine/adlaplace",
  "RemoteRef": "main",
  "RemoteSha": "402cb9c50ba20f12ba8439d11cb9812574783497",
  "RemoteSubdir": "adlaplace",
  "Packaged": {
    "Date": "2026-10-16 21:43:12 UTC",
    "User": "root"
  },
  "Author": "Patrick Brown [aut, cre, cph]",
  "_user": "eborgnine",
  "_type": "src",
  "_file": "adlaplace_0.7.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/cd4d6081f5c8fea5128a7c2355be41f97357f394676c2964518b82acab74d416",
  "_filesize": 2954408,
  "_sha256": "cd4d6081f5c8fea5128a7c2355be41f97357f394676c2964518b82acab74d416",
  "_expires": "2027-01-24T22:02:23.000Z",
  "_created": "2026-10-16T21:43:12.000Z",
  "_published": "2026-10-16T22:02:25.551Z",
  "_buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117210315457,
      "time": 204,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12076662885"
    },
    {
      "job": 117210315479,
      "time": 233,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12077476976"
    },
    {
      "job": 117210315485,
      "time": 202,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12077281480"
    },
    {
      "job": 117210315607,
      "time": 297,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12076339842"
    },
    {
      "job": 117210315661,
      "time": 171,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12077287675"
    },
    {
      "job": 117210315386,
      "time": 350,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12077668138"
    },
    {
      "job": 117210315388,
      "time": 202,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12076684158"
    },
    {
      "job": 117210315455,
      "time": 508,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12078160006"
    },
    {
      "job": 117206495479,
      "time": 628,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12076507892"
    },
    {
      "job": 117210315100,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12076842439"
    },
    {
      "job": 117210315630,
      "time": 350,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12077517132"
    },
    {
      "job": 117210315495,
      "time": 248,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12076658234"
    },
    {
      "job": 117210315629,
      "time": 180,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12076244721"
    },
    {
      "job": 117210315823,
      "time": 412,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12076429895"
    },
    {
      "job": 117210315535,
      "time": 275,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12076752427"
    }
  ],
  "_upstream": "https://github.com/eborgnine/adlaplace",
  "_commit": {
    "id": "402cb9c50ba20f12ba8439d11cb9812574783497",
    "author": "eborgnine <patrick.borgnine@gmail.com>",
    "committer": "eborgnine <patrick.borgnine@gmail.com>",
    "message": "doign stuff for fem mgp\n",
    "time": 1792184896
  },
  "_maintainer": {
    "name": "Patrick Brown",
    "email": "patrick.borgnine@gmail.com",
    "login": "eborgnine",
    "description": "Patrick Brown",
    "uuid": 5818919
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "trustOptim",
      "role": "LinkingTo"
    },
    {
      "package": "Matrix",
      "role": "LinkingTo"
    },
    {
      "package": "RCppAD",
      "role": "LinkingTo"
    },
    {
      "package": "Matrix",
      "version": ">= 1.2.18",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.3",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "RCppAD",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "trustOptim",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "mvQuad",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "nlme",
      "role": "Suggests"
    },
    {
      "package": "sn",
      "role": "Suggests"
    },
    {
      "package": "terra",
      "role": "Suggests"
    },
    {
      "package": "GET",
      "role": "Suggests"
    },
    {
      "package": "WoodburyMatrix",
      "role": "Suggests"
    },
    {
      "package": "extraDistr",
      "role": "Suggests"
    },
    {
      "package": "RSpectra",
      "role": "Suggests"
    },
    {
      "package": "aghq",
      "role": "Suggests"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    }
  ],
  "_owner": "eborgnine",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2025-42",
      "n": 13
    },
    {
      "week": "2025-43",
      "n": 4
    },
    {
      "week": "2025-44",
      "n": 18
    },
    {
      "week": "2025-45",
      "n": 59
    },
    {
      "week": "2025-46",
      "n": 11
    },
    {
      "week": "2025-47",
      "n": 22
    },
    {
      "week": "2025-48",
      "n": 8
    },
    {
      "week": "2025-49",
      "n": 11
    },
    {
      "week": "2025-50",
      "n": 12
    },
    {
      "week": "2026-04",
      "n": 15
    },
    {
      "week": "2026-05",
      "n": 2
    },
    {
      "week": "2026-06",
      "n": 6
    },
    {
      "week": "2026-07",
      "n": 16
    },
    {
      "week": "2026-08",
      "n": 11
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 4
    },
    {
      "week": "2026-11",
      "n": 31
    },
    {
      "week": "2026-12",
      "n": 5
    },
    {
      "week": "2026-13",
      "n": 17
    },
    {
      "week": "2026-14",
      "n": 19
    },
    {
      "week": "2026-15",
      "n": 7
    },
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 12
    },
    {
      "week": "2026-18",
      "n": 99
    },
    {
      "week": "2026-19",
      "n": 4
    },
    {
      "week": "2026-21",
      "n": 11
    },
    {
      "week": "2026-22",
      "n": 4
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 24
    },
    {
      "week": "2026-25",
      "n": 2
    },
    {
      "week": "2026-26",
      "n": 3
    },
    {
      "week": "2026-27",
      "n": 2
    },
    {
      "week": "2026-28",
      "n": 6
    },
    {
      "week": "2026-29",
      "n": 70
    },
    {
      "week": "2026-30",
      "n": 26
    },
    {
      "week": "2026-31",
      "n": 12
    },
    {
      "week": "2026-32",
      "n": 6
    },
    {
      "week": "2026-33",
      "n": 3
    },
    {
      "week": "2026-34",
      "n": 9
    },
    {
      "week": "2026-35",
      "n": 17
    },
    {
      "week": "2026-37",
      "n": 28
    },
    {
      "week": "2026-38",
      "n": 4
    },
    {
      "week": "2026-39",
      "n": 9
    },
    {
      "week": "2026-40",
      "n": 8
    },
    {
      "week": "2026-41",
      "n": 10
    },
    {
      "week": "2026-42",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "eborgnine",
      "count": 954,
      "uuid": 5818919
    },
    {
      "user": "samperochkin",
      "count": 33,
      "uuid": 25728471
    },
    {
      "user": "cursoragent",
      "count": 3,
      "uuid": 199161495
    }
  ],
  "_userbio": {
    "uuid": 5818919,
    "type": "user",
    "name": "eborgnine",
    "followers": 7,
    "description": "Patrick Brown"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/adlaplace"
  },
  "_devurl": "https://github.com/eborgnine/adlaplace",
  "_searchresults": 0,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/adlaplace.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_exports": [
    ".model_role_levels",
    "ad_pack",
    "ad_pack_drop",
    "ad_pack_ptr",
    "ad_pack_set_X",
    "adlaplace",
    "aghq_ff",
    "amip_set",
    "apply_theta_log",
    "beta_info",
    "binom",
    "by_group",
    "clone_ad_pack_ptr",
    "collect_terms",
    "density_data",
    "deriv_scan_joint",
    "deriv_scan_laplace",
    "design",
    "dirichlet_multinom",
    "elgm_matrix",
    "extra_density",
    "fit_outer",
    "format_parameters",
    "fpoly",
    "fun_obj_fdfh",
    "grad",
    "grad_obs_units",
    "has_openmp",
    "hessian",
    "hinv_trace_index",
    "iid",
    "influence_scores",
    "inner_opt",
    "intercept",
    "iwp",
    "joint_log_dens",
    "laplace_half_H_inv",
    "laplace_loglik",
    "linear",
    "log_lik_laplace",
    "mean_mvquad",
    "model_data",
    "n_groups",
    "n_obs_units",
    "nbinom",
    "normal",
    "obs_groups",
    "obs_groups_units",
    "outer_fn",
    "outer_gr",
    "phi_gamma",
    "pois",
    "precision",
    "prior",
    "psd",
    "psd_prior",
    "random_info",
    "ref_align",
    "replace_vars",
    "rmvnldl",
    "rpoly",
    "sim_fit",
    "sim_iid",
    "sim_random",
    "sizes",
    "strip_term_name",
    "takahashi_davis",
    "term_data_setup",
    "theta_info",
    "trace_hinv_t"
  ],
  "_datasets": [
    {
      "name": "dat",
      "title": "Example GAMM simulation data",
      "object": "gamm",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x0",
        "x1",
        "x2",
        "x3",
        "f",
        "f0",
        "f1",
        "f2",
        "f3",
        "fac",
        "mu",
        "Z"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "germany",
      "title": "Germany oral cavity cancer (Besag-York-Mollie example)",
      "object": "germany",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "london",
      "title": "London daily mortality and PM10 (case-crossover example)",
      "object": "london",
      "class": [
        "data.frame"
      ],
      "fields": [
        "city",
        "date",
        "year",
        "month",
        "day",
        "dow",
        "all",
        "tmean",
        "rh",
        "pm10"
      ],
      "rows": 1826,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dot-model_role_levels",
      "title": "Valid model type factor levels",
      "topics": [
        ".model_role_levels"
      ]
    },
    {
      "page": "ad_pack",
      "title": "Build AD function with Hessian templates",
      "topics": [
        "ad_pack",
        "ad_pack,ad_pack_ptr-method",
        "ad_pack,density_data-method",
        "ad_pack,list-method"
      ]
    },
    {
      "page": "ad_pack_drop",
      "title": "Retape an AD pack after dropping observation units",
      "topics": [
        "ad_pack_drop"
      ]
    },
    {
      "page": "ad_pack_ptr",
      "title": "Build raw AD handle for one density shard",
      "topics": [
        "ad_pack_ptr"
      ]
    },
    {
      "page": "ad_pack_ptr-class",
      "title": "Raw AD handle (external pointer)",
      "topics": [
        "ad_pack_ptr-class"
      ]
    },
    {
      "page": "ad_pack_set_X",
      "title": "Rebuild an 'ad_pack' for a new model-data design",
      "topics": [
        "ad_pack_set_X"
      ]
    },
    {
      "page": "ad_pack-class",
      "title": "AD function with Hessian templates attached",
      "topics": [
        "ad_pack-class"
      ]
    },
    {
      "page": "adlaplace",
      "title": "Fit a hierarchical model by Laplace-approximate maximum likelihood",
      "topics": [
        "adlaplace"
      ]
    },
    {
      "page": "adlaplace_cpp",
      "title": "C++ backend entry points",
      "topics": [
        "adlaplace_cpp",
        "fun_obj_fdfh",
        "grad",
        "hessian",
        "joint_log_dens",
        "trace_hinv_t"
      ]
    },
    {
      "page": "adlaplace_fit-methods",
      "title": "Methods for fitted adlaplace models",
      "topics": [
        "adlaplace_fit-methods",
        "coef.adlaplace_fit",
        "confint.adlaplace_fit",
        "fitted.adlaplace_fit",
        "logLik.adlaplace_fit",
        "nobs.adlaplace_fit",
        "plot.adlaplace_fit",
        "predict.adlaplace_fit",
        "print.adlaplace_fit",
        "print.summary.adlaplace_fit",
        "summary.adlaplace_fit",
        "vcov.adlaplace_fit"
      ]
    },
    {
      "page": "aghq_ff",
      "title": "Build 'aghq' objective list from an adlaplace fit",
      "topics": [
        "aghq_ff"
      ]
    },
    {
      "page": "amip_set",
      "title": "Approximate most influential removal set (AMIP)",
      "topics": [
        "amip_set"
      ]
    },
    {
      "page": "apply_theta_log",
      "title": "Apply log transform to selected theta columns",
      "topics": [
        "apply_theta_log"
      ]
    },
    {
      "page": "binomial-class",
      "title": "Binomial observation term",
      "topics": [
        "binom",
        "binomial-class"
      ]
    },
    {
      "page": "by_group",
      "title": "By-Group Classes and Functions",
      "topics": [
        "by_group"
      ]
    },
    {
      "page": "by_group-class",
      "title": "By-Group Class",
      "topics": [
        "by_group-class"
      ]
    },
    {
      "page": "c.ad_pack_ptr",
      "title": "Combine 'ad_pack_ptr' handles",
      "topics": [
        "c.ad_pack_ptr"
      ]
    },
    {
      "page": "clone_ad_pack_ptr",
      "title": "Deep copy of an 'ad_pack_ptr' handle",
      "topics": [
        "clone_ad_pack_ptr"
      ]
    },
    {
      "page": "collect_terms",
      "title": "Parse Model Terms from Formula",
      "topics": [
        "collect_terms"
      ]
    },
    {
      "page": "density_data-class",
      "title": "Per-shard layout for AD density evaluation",
      "topics": [
        "density_data",
        "density_data-class"
      ]
    },
    {
      "page": "deriv_scan_joint",
      "title": "Scan joint log-density AD derivatives vs finite differences",
      "topics": [
        "deriv_scan_joint"
      ]
    },
    {
      "page": "deriv_scan_laplace",
      "title": "Scan Laplace profile AD derivatives vs finite differences",
      "topics": [
        "deriv_scan_laplace"
      ]
    },
    {
      "page": "dirichlet_multinom",
      "title": "Dirichlet-multinomial case-crossover response term",
      "topics": [
        "dirichlet_multinom"
      ]
    },
    {
      "page": "dirichlet_multinom-class",
      "title": "Dirichlet-multinomial response term",
      "topics": [
        "beta_info,dirichlet_multinom-method",
        "design,dirichlet_multinom-method",
        "dirichlet_multinom-class",
        "elgm_matrix,dirichlet_multinom-method",
        "precision,dirichlet_multinom-method",
        "random_info,dirichlet_multinom-method",
        "theta_info,dirichlet_multinom-method"
      ]
    },
    {
      "page": "fit_outer",
      "title": "Outer optimization scaffolding for Laplace profile likelihoods",
      "topics": [
        "fit_outer"
      ]
    },
    {
      "page": "format_parameters",
      "title": "Format Laplace estimates using parameter metadata",
      "topics": [
        "format_parameters"
      ]
    },
    {
      "page": "fpoly-class",
      "title": "Fixed Polynomial Model Term",
      "topics": [
        "beta_info,fpoly-method",
        "design,fpoly-method",
        "fpoly",
        "fpoly-class"
      ]
    },
    {
      "page": "gamm",
      "title": "Example GAMM simulation data",
      "topics": [
        "dat",
        "gamm"
      ]
    },
    {
      "page": "gaussian-class",
      "title": "Gaussian observation term",
      "topics": [
        "gaussian-class",
        "normal",
        "theta_info,gaussian-method"
      ]
    },
    {
      "page": "germany",
      "title": "Germany oral cavity cancer (Besag-York-Mollie example)",
      "topics": [
        "germany"
      ]
    },
    {
      "page": "grad_obs_units",
      "title": "Per-unit observation gradients (streaming, grad-only tapes)",
      "topics": [
        "grad_obs_units"
      ]
    },
    {
      "page": "has_openmp",
      "title": "Whether this build was compiled with OpenMP support.",
      "topics": [
        "has_openmp"
      ]
    },
    {
      "page": "hinv_trace_index",
      "title": "Positions of a shard's quadratic form inside the joint inverse Hessian",
      "topics": [
        "hinv_trace_index",
        "hinv_trace_index,density_data-method"
      ]
    },
    {
      "page": "iid-class",
      "title": "IID Random Effects Term",
      "topics": [
        "design,iid-method",
        "iid",
        "iid-class",
        "precision,iid-method",
        "random_info,iid-method",
        "theta_info,iid-method"
      ]
    },
    {
      "page": "influence_scores",
      "title": "Per-unit influence scores for an inner linear functional",
      "topics": [
        "influence_scores"
      ]
    },
    {
      "page": "inner_opt",
      "title": "Inner optimization over gamma using trust-region CG (sparse)",
      "topics": [
        "inner_opt"
      ]
    },
    {
      "page": "intercept-class",
      "title": "intercept Model Term",
      "topics": [
        "beta_info,intercept-method",
        "design,intercept-method",
        "intercept",
        "intercept-class",
        "precision,intercept-method",
        "random_info,intercept-method"
      ]
    },
    {
      "page": "iwp",
      "title": "Integrated Wiener Process Term Constructor",
      "topics": [
        "iwp"
      ]
    },
    {
      "page": "iwp-class",
      "title": "Integrated Wiener Process Term",
      "topics": [
        "design,iwp-method",
        "iwp-class",
        "precision,iwp-method",
        "random_info,iwp-method",
        "theta_info,iwp-method"
      ]
    },
    {
      "page": "laplace_half_H_inv",
      "title": "Extract inner inverse Cholesky factor from Laplace output",
      "topics": [
        "laplace_half_H_inv"
      ]
    },
    {
      "page": "laplace_loglik",
      "title": "Laplace-approximate log-likelihood (positive convention)",
      "topics": [
        "laplace_loglik"
      ]
    },
    {
      "page": "linear-class",
      "title": "Linear Model Term",
      "topics": [
        "beta_info,linear-method",
        "design,linear-method",
        "linear",
        "linear-class",
        "precision,linear-method",
        "random_info,linear-method"
      ]
    },
    {
      "page": "log_lik_laplace",
      "title": "Log-likelihood with inner Laplace optimization",
      "topics": [
        "log_lik_laplace"
      ]
    },
    {
      "page": "london",
      "title": "London daily mortality and PM10 (case-crossover example)",
      "topics": [
        "london"
      ]
    },
    {
      "page": "mean_mvquad",
      "title": "Posterior mean of random effects via multivariate quadrature",
      "topics": [
        "mean_mvquad"
      ]
    },
    {
      "page": "model_data",
      "title": "Assemble model terms and per-shard 'density_data' objects",
      "topics": [
        "model_data"
      ]
    },
    {
      "page": "model_term-class",
      "title": "Base Model Class",
      "topics": [
        "model_term-class"
      ]
    },
    {
      "page": "model-generics",
      "title": "Model Term Generics",
      "topics": [
        "beta_info",
        "beta_info,model_term-method",
        "design",
        "design,model_term-method",
        "elgm_matrix",
        "extra_density",
        "extra_density,model_term-method",
        "model-generics",
        "precision",
        "precision,model_term-method",
        "random_info",
        "random_info,model_term-method",
        "theta_info",
        "theta_info,model_term-method"
      ]
    },
    {
      "page": "n_groups",
      "title": "Number of AD shards in an 'ad_pack_ptr' handle",
      "topics": [
        "n_groups"
      ]
    },
    {
      "page": "n_obs_units",
      "title": "Number of removable observation units",
      "topics": [
        "n_obs_units"
      ]
    },
    {
      "page": "nbinom-class",
      "title": "Negative binomial observation term",
      "topics": [
        "nbinom",
        "nbinom-class",
        "theta_info,nbinom-method"
      ]
    },
    {
      "page": "obs_groups",
      "title": "Partition observations into AD shards by sparsity pattern",
      "topics": [
        "obs_groups"
      ]
    },
    {
      "page": "obs_groups_units",
      "title": "Build 'obs_groups' for a subset of observation units",
      "topics": [
        "obs_groups_units"
      ]
    },
    {
      "page": "outer_optim_wrappers",
      "title": "Outer objective and gradient wrappers",
      "topics": [
        "outer_fn",
        "outer_gr",
        "outer_optim_wrappers"
      ]
    },
    {
      "page": "phi_gamma",
      "title": "Linear functional of the inner field gamma",
      "topics": [
        "phi_gamma"
      ]
    },
    {
      "page": "poisson-class",
      "title": "Poisson observation term",
      "topics": [
        "pois",
        "poisson-class"
      ]
    },
    {
      "page": "prior-class",
      "title": "Hyperparameter prior term",
      "topics": [
        "prior",
        "prior-class"
      ]
    },
    {
      "page": "psd",
      "title": "Predictive standard deviation of a random term",
      "topics": [
        "psd",
        "psd,iwp-method",
        "psd,list-method",
        "psd,model_term-method"
      ]
    },
    {
      "page": "psd_prior",
      "title": "PC prior on the predictive SD of a random term",
      "topics": [
        "psd_prior"
      ]
    },
    {
      "page": "replace_vars",
      "title": "Replace data-column names in model terms",
      "topics": [
        "replace_vars",
        "replace_vars,dirichlet_multinom-method",
        "replace_vars,formula-method",
        "replace_vars,list-method",
        "replace_vars,model_term-method"
      ]
    },
    {
      "page": "rmvnldl",
      "title": "Simulate from a multivariate normal using LDL of the precision matrix",
      "topics": [
        "rmvnldl"
      ]
    },
    {
      "page": "rpoly-class",
      "title": "Random Polynomial Model Term",
      "topics": [
        "design,rpoly-method",
        "precision,rpoly-method",
        "random_info,rpoly-method",
        "rpoly",
        "rpoly-class"
      ]
    },
    {
      "page": "sim_fit",
      "title": "Simulate linear predictors on a new covariate grid",
      "topics": [
        "sim_fit"
      ]
    },
    {
      "page": "sim_iid",
      "title": "Simulate IID random effects with pointwise and global intervals",
      "topics": [
        "sim_iid"
      ]
    },
    {
      "page": "sim_random",
      "title": "Simulate a random-effect contribution for one covariate",
      "topics": [
        "sim_random"
      ]
    },
    {
      "page": "sizes",
      "title": "Parameter-block row counts for an 'density_data'",
      "topics": [
        "sizes",
        "sizes,density_data-method"
      ]
    },
    {
      "page": "takahashi_davis",
      "title": "Sparse inverse subset of a symmetric positive-definite matrix",
      "topics": [
        "takahashi_davis"
      ]
    },
    {
      "page": "term_data_setup",
      "title": "Build design matrices and parameter metadata from a formula",
      "topics": [
        "term_data_setup"
      ]
    }
  ],
  "_readme": "https://github.com/eborgnine/adlaplace/raw/main/README.md",
  "_rundeps": [
    "data.table",
    "lattice",
    "Matrix",
    "Rcpp",
    "RCppAD",
    "RcppEigen",
    "trustOptim"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "casecrossover_amip.Rmd",
      "filename": "casecrossover_amip.html",
      "title": "Approximate maximum influence perturbations",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Case-crossover: PM10 at 80",
        "Fit (outer MLE)",
        "Quantity of interest and influence scores",
        "Approximate most influential set",
        "Confirm by dropping nominated strata",
        "Refit without AMIP strata",
        "Bacteria: sign-flip of the drug effect",
        "Notes"
      ],
      "created": "2026-09-11 22:37:38",
      "modified": "2026-10-08 20:03:53",
      "commits": 7
    },
    {
      "source": "bacteria.Rmd",
      "filename": "bacteria.html",
      "title": "Bayesian Bernoulli mixed model for the bacteria data",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data",
        "Model",
        "Adaptive Gauss–Hermite quadrature",
        "Posterior of (\\sigma)",
        "Fitted probabilities and child effects"
      ],
      "created": "2026-08-27 13:33:14",
      "modified": "2026-09-28 13:10:59",
      "commits": 7
    },
    {
      "source": "germany.Rmd",
      "filename": "germany.html",
      "title": "BYM disease mapping: Germany oral cavity cancer",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Building AD shards",
        "Combining shards",
        "Joint log density derivatives",
        "Inner optimization",
        "Joint density derivative checks",
        "Profile likelihood",
        "Outer optimization",
        "Spatial effects"
      ],
      "created": "2026-07-17 14:29:04",
      "modified": "2026-09-28 13:10:59",
      "commits": 15
    },
    {
      "source": "casecrossover.Rmd",
      "filename": "casecrossover.html",
      "title": "Case-crossover models with adlaplace",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Model specification",
        "Fit",
        "AD development check",
        "Joint log density",
        "Likelihood"
      ],
      "created": "2026-07-21 15:47:49",
      "modified": "2026-09-28 13:10:59",
      "commits": 14
    },
    {
      "source": "dirichlet_multinom.Rmd",
      "filename": "dirichlet_multinom.html",
      "title": "Equivalence to Conditional Gamma-Poisson Model",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Equivalence to Conditional Gamma-Poisson Model",
        "\\begin{equation}\\label{eq:multinom}P(\\mathbf{y} \\mid \\boldsymbol{\\lambda}, \\sum_{k=1}^K Y_k = N)",
        "\\begin{equation}\\label{eq:dm}P(\\mathbf{y} \\mid \\alpha, \\boldsymbol{\\mu}, N)",
        "Simplificaiton",
        "\\begin",
        "\\begin{equation}\\label{eq:dm_ratio}P(\\mathbf{y} \\mid \\alpha, \\boldsymbol{\\mu}, N)"
      ],
      "created": "2026-07-21 15:47:49",
      "modified": "2026-09-11 17:28:02",
      "commits": 4
    },
    {
      "source": "gamm.Rmd",
      "filename": "gamm.html",
      "title": "GAMM Examples",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "check by shard",
        "Profile derivative checks",
        "Joint density derivative checks"
      ],
      "created": "2026-07-17 14:29:04",
      "modified": "2026-09-28 13:10:59",
      "commits": 16
    },
    {
      "source": "adlaplace.Rmd",
      "filename": "adlaplace.html",
      "title": "Laplace Approximations with adlaplace",
      "author": "Patrick Brown",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model",
        "Simulated data",
        "Building AD shards",
        "Observations and hyperparameters",
        "Random effects",
        "Observation likelihood check",
        "Combining shards",
        "Joint log density derivatives",
        "Inner optimization",
        "likelihood",
        "Outer optimization",
        "Derivative checks",
        "Joint density derivative checks",
        "nicer interface",
        "mean estimation"
      ],
      "created": "2025-11-26 14:21:30",
      "modified": "2026-09-28 13:10:59",
      "commits": 55
    }
  ],
  "_score": 6.4620983811351556,
  "_indexed": true,
  "_nocasepkg": "adlaplace",
  "_universes": [
    "eborgnine"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.5",
      "date": "2026-10-16T21:45:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/d948b39d104f602b8c7c3869b3a0d42c157ea09c69ee6ffff5b93206217658fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.5",
      "date": "2026-10-16T21:46:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/32c6542ca7cf605408438752f2aa4b7ce02d7335c29730b70556a369fc191778",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.5",
      "date": "2026-10-16T21:45:49.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/d8f1a9de7d6cde3ef75348dc5871ebef633df958d2e96c2deb9b4aa91e065112",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.5",
      "date": "2026-10-16T21:46:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/0a3226dd13b67e44d3606c72a5fdfc26508d8d9f895eaa16143bd035c82f86d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.5",
      "date": "2026-10-16T21:55:44.000Z",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/4c83827121d74b2205fed3c0143adf2c361c8116fdb7eaf1de28f16185c787eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.5",
      "date": "2026-10-16T21:55:11.000Z",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/1f65a9175d234c522f68e3c682b0b54f720c0a06f92ba72c32a5eafa223186f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.5",
      "date": "2026-10-16T21:55:04.000Z",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/5a3ff2e0e836317704b0f7c5de9e58c9398d2a4bdee1a0acc458362995692e02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.5",
      "date": "2026-10-16T21:57:18.000Z",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/7811927c4e4cf5b2f483a18f8d2bd956f9d68f98130e52113938b59c1496f930",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.5",
      "date": "2026-10-16T21:46:09.000Z",
      "arch": "emscripten",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/a0030a7c53647cb4302a95fc03790ff963d323e23bde7f09f2353db55253041c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.5",
      "date": "2026-10-16T21:47:24.000Z",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/4b3c5daf0e028eb722ed0d90b4823222d4be390b967d777acffaaffa437c3dfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.5",
      "date": "2026-10-16T21:45:38.000Z",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/ec1edda3c31cc7069e1067c553f372f544efcbe0dbd3483ad2cb79de5db3a2ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.5",
      "date": "2026-10-16T21:45:31.000Z",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/6d10268e922aca36a30738d2039a567dc76e4181df1d082ff286320cb9169618",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.5",
      "date": "2026-10-16T21:48:38.000Z",
      "arch": "aarch64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/f0ff39f58cef2f05ad8f9f10fc36439786c8aabe11a8d5049f121851522c130a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.5",
      "date": "2026-10-16T21:45:26.000Z",
      "arch": "x86_64",
      "commit": "402cb9c50ba20f12ba8439d11cb9812574783497",
      "fileid": "https://r2.ropensci.org/9bdca890394b0ba3548425262d33114d8461120cd359278ff2b9b576f4b1323e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/eborgnine/actions/runs/38970197501"
    }
  ]
}