-
Notifications
You must be signed in to change notification settings - Fork 0
Home
General Dynamic Parameter Models via Reference Anchoring
Package version: 0.1.0 · License: GPL (≥ 3) · Author: José Mauricio Gómez Julián (ORCID 0009-0000-2412-3150) · Repository: https://github.com/IsadoreNabi/gdpar
This is an exhaustive, self-contained technical reference for the gdpar R package. It documents, in three layers and at maximal depth:
- Conceptualization — the cognitive and statistical idea behind the framework, its desiderata, and the family of problems it addresses (Part I).
- Mathematics — the canonical decomposition, identifiability theory, the three estimation paths and their asymptotics, the distributional-family algebra, the spline bases, the causal-inference bridge, the geometry-adaptive sampling engine, and the dependence-robust inference machinery (Part II).
- Computation — how the mathematics is realized in code: the Stan code generator and every Stan template (line by line), the fitting engines, the family code generation, the geometry engine, and every one of the package's 469 functions organized by module (Parts III–V).
Parts VI and the appendices cover the bundled data, the benchmark harness, the test suite, the symbol glossary, and the bibliographic anchors.
| Part | Content |
|---|---|
| I | Conceptual framework: motivation, the anchoring equation, the AMM form, the three paths, EB vs FB, distributional regression, the causal bridge, geometric robustness, dependence-robust inference |
| II | Mathematical foundations: AMM algebra, identifiability theorems (C1–C7), parametrizations (CP/NCP, linear reparametrization), asymptotics of Paths 1/2/3, Empirical-Bayes theory (Theorems 7A–7D) and its multivariate extension, families and links, B-spline W bases, grouped references, causal identification, geometric metrics, dependence diagnostics and block bootstrap |
| III | Computational architecture: the Stan code generator, the fitting engines (gdpar, .gdpar_multi, .gdpar_K), the Empirical-Bayes engine, the family/codegen layer, the geometry engine/orchestrator |
| IV | Exhaustive function reference: all 44 R source files, all 469 functions, grouped by module, each with purpose, signature, arguments, mathematics, and return value |
| V | Stan templates: all 13 .stan files, block by block |
| VI | Data, benchmarks, tests, appendices, references |
Mathematics is written in GitHub-flavored LaTeX: inline as $ … $ and display as $$ … $$. Code identifiers, file names, and Stan symbols are in monospace. Internal (non-exported) R functions are named with a leading dot, e.g. .gdpar_multi; exported functions have no leading dot, e.g. gdpar.
The single most important object in the entire package is the reference-anchoring decomposition
read throughout as: the parameter of individual
| Symbol | Meaning |
|---|---|
| parameter (vector) for individual / observation |
|
| population reference parameter, |
|
| individual deviation function | |
| observable covariates of individual |
|
| additive component of the AMM deviation | |
| multiplicative (Hadamard) component of the AMM deviation | |
| reference-modulated mixing matrix of the AMM deviation | |
| Hadamard (elementwise) product | |
| number of distributional parameter slots (e.g. |
|
| dimension of the parameter at a slot (number of coordinates of |
|
| observation distribution given |
|
| EB hyperparameter / canonical-piece reduced parameter vector | |
| link and inverse-link (response) function of a slot | |
| Riemannian metric tensor used by the geometry engine | |
| temporal persistence (AR) parameter; also hypernetwork weights in Path 3 | |
| structural-zero probability for individual |
This wiki is split across the following pages (GitHub renders at most ~512 KB per page, so the single-file version is paginated here). Use the sidebar for quick navigation.
- Part I — Conceptual Framework
- Part II — Mathematical Foundations
- Part III — Computational Architecture
- Part IV — Exhaustive Function Reference (1/7) — R/adapter_econml.R … R/compare_eb_fb.R
-
Part IV — Exhaustive Function Reference (2/7) — R/compare_meta_learners_methods.R … Functions in
R/eb.R(section 3 of 8) -
Part IV — Exhaustive Function Reference (3/7) —
.gdpar_eb_make_random_init(stan_data, seed_offset = 1L, base_seed = NULL)… R/gdpar-package.R - Part IV — Exhaustive Function Reference (4/7) — R/gdpar.R … Geometry Diagnostic — Culprit Localisation, Difficulty Curve, and Rule-Based Classifier
- Part IV — Exhaustive Function Reference (5/7) — R/geometry_engine.R … R/geometry_suite.R
- Part IV — Exhaustive Function Reference (6/7) — R/golden_compare.R … R/preflight.R
-
Part IV — Exhaustive Function Reference (7/7) — Pre-flight Diagnostics (Section 2) …
.gdpar_validate_bspline_boundary_range(W, projected_range) - Part V — Stan Templates (1/3) — inst/stan/_canonical_pieces/amm_canonical_distrib_K.stan … inst/stan/_canonical_pieces/amm_canonical_eb_conditional.stan
- Part V — Stan Templates (2/3) — inst/stan/_canonical_pieces/amm_canonical_eb_marginal_K.stan … inst/stan/_canonical_pieces/amm_canonical_pmulti_KxP.stan
- Part V — Stan Templates (3/3) — inst/stan/_canonical_pieces/amm_canonical_pmulti.stan … inst/stan/amm_eb_marginal_KxP.stan
- Part VI — Data, Benchmarks, Tests & References
- Part I — Conceptual Framework
- Part II — Mathematical Foundations
- Part III — Computational Architecture
- Part IV — Exhaustive Function Reference (1/7)
- Part IV — Exhaustive Function Reference (2/7)
- Part IV — Exhaustive Function Reference (3/7)
- Part IV — Exhaustive Function Reference (4/7)
- Part IV — Exhaustive Function Reference (5/7)
- Part IV — Exhaustive Function Reference (6/7)
- Part IV — Exhaustive Function Reference (7/7)
- Part V — Stan Templates (1/3)
- Part V — Stan Templates (2/3)
- Part V — Stan Templates (3/3)
- Part VI — Data, Benchmarks, Tests & References