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 Description: Computes Laplace-approximate maximum likelihood for hierarchical and latent Gaussian models. A formula interface specifies observation densities (e.g. Gaussian, negative Binomial), fixed effects, and random terms (independent effects, smoothing terms). Customized response distributions and models for random effects can be specified through a low-level interface or by writing interoperable packages. Derivatives are computed using automatic differentiation with 'CppAD', and used in trust region optimization to find modes of random effects. Derivatives of the Laplace approximation of the log-likelihood are computed using third order contractions and is compatible with custom atomics. The approach follows Kristensen, Nielsen, Berg, Skaug, and Bell (2016) . License: GPL (>= 2) Depends: R (>= 3.5.0) Imports: Matrix (>= 1.2.18), Rcpp (>= 1.0.3), methods, data.table, stats, graphics, RCppAD Suggests: knitr, rmarkdown, trustOptim, testthat (>= 3.0.0), mvQuad, mgcv, MASS, nlme, sn, terra, GET, WoodburyMatrix, extraDistr, RSpectra, aghq, numDeriv Config/testthat/edition: 3 VignetteBuilder: knitr LinkingTo: Rcpp, RcppEigen, trustOptim, Matrix, RCppAD Encoding: UTF-8 SystemRequirements: OpenMP NeedsCompilation: yes Collate: 'RcppExports.R' 'classes.R' 'density_data.R' 'ad_pack_ptr.R' 'ad_pack.R' 'aghq_ff.R' 'obs_groups.R' 'model_data.R' 'log_lik.R' 'fit.R' 'grad_obs_units.R' 'amip.R' 'deriv_scan.R' 'dirichlet_multinom.R' 'effects.R' 'families.R' 'sim_fit.R' 'fit_methods.R' 'fixed_terms.R' 'format_parameters.R' 'germany-data.R' 'hessian_map.R' 'iid.R' 'iwp.R' 'london-data.R' 'mvn_utils.R' 'prepare_model_rows.R' 'prior.R' 'psd.R' 'replace_vars.R' 'rpoly.R' 'sim_iid.R' '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-15 01:40:34 UTC RemoteUrl: https://github.com/eborgnine/adlaplace RemoteRef: main RemoteSha: 2ec31290dd836a2236676e2a64bd1953f7580d11 RemoteSubdir: adlaplace Packaged: 2026-10-15 06:30:35 UTC; root Author: Patrick Brown [aut, cre, cph]