Package: adlaplace
Type: Package
Title: Laplace Approximations Using Automatic Differentiation
Version: 0.7.4
Date: 2026-10-08
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 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)
    <doi:10.18637/jss.v070.i05>.
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'
        '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
Packaged: 2026-10-09 20:46:55 UTC; patrick
Author: Patrick Brown [aut, cre, cph]
Repository: CRAN
Date/Publication: 2026-10-21 14:40:14 UTC
