| Title: | Example Backend for 'adlaplace' |
|---|---|
| Description: | Provides a minimal example backend package for 'adlaplace'. It demonstrates how to implement and expose model-specific AD tape construction while delegating optimization and Laplace approximation workflows to 'adlaplace'. |
| Authors: | Patrick Brown [aut, cre, cph] |
| Maintainer: | Patrick Brown <[email protected]> |
| License: | MPL-2.0 |
| Version: | 0.5.2 |
| Built: | 2026-07-17 23:36:45 UTC |
| Source: | https://github.com/eborgnine/adlaplace |
ad_fun_ptr in this package's shared library.Records CppAD tapes in adlaplaceExample.so (same DSO as custom densities).
get_ad_fun_raw_obs(model, config, name)get_ad_fun_raw_obs(model, config, name)
model |
|
config |
Model configuration list. |
name |
Observation density name (e.g. |
External pointer of class ad_fun_ptr.
ad_fun_ptr in this package's shared library.Build parameters-shard ad_fun_ptr in this package's shared library.
get_ad_fun_raw_parameters(model, config, name)get_ad_fun_raw_parameters(model, config, name)
model |
|
config |
Model configuration list. |
name |
Parameters density name (e.g. |
External pointer of class ad_fun_ptr.
Creates a response term wired to the skewnormal_obs AD shard.
skewnormal( x, init = c(0.1, 0.1), lower = c(1e-09, -Inf), upper = c(Inf, Inf), parscale = c(1, 1) )skewnormal( x, init = c(0.1, 0.1), lower = c(1e-09, -Inf), upper = c(Inf, Inf), parscale = c(1, 1) )
x |
Outcome variable name. |
init |
Initial values for |
lower |
Lower bounds for |
upper |
Upper bounds for |
parscale |
Parameter scales for optimization. |
A skewnormal object.
Model term for the observation-level skew-normal log density
registered as skewnormal_obs.
## S4 method for signature 'skewnormal' design(term, data) ## S4 method for signature 'skewnormal' precision(term, data) ## S4 method for signature 'skewnormal' theta_info(term) ## S4 method for signature 'skewnormal' beta_info(term, data) ## S4 method for signature 'skewnormal' random_info(term, data)## S4 method for signature 'skewnormal' design(term, data) ## S4 method for signature 'skewnormal' precision(term, data) ## S4 method for signature 'skewnormal' theta_info(term) ## S4 method for signature 'skewnormal' beta_info(term, data) ## S4 method for signature 'skewnormal' random_info(term, data)
term |
A |
data |
A data frame (unused for this observation term). |
design(skewnormal): Design method (not used for observation density).
precision(skewnormal): Precision method (not used).
theta_info(skewnormal): Theta info for skew-normal parameters.
Scale omega uses transform = TRUE (log scale when
config$transform_theta is TRUE); shape alpha is untransformed.
beta_info(skewnormal): Beta info method (not used).
random_info(skewnormal): Random info method (not used).
model)ad_funCharacter scalar "skewnormal_obs".
ad_kindCharacter scalar "observations".
packageCharacter scalar "adlaplaceExample".