Scientific model recipes
These definitions preserve useful scientific distinctions from the earlier A-C planning catalog. They are mathematical recipes, not installed syntax, implementation priorities, or qualification claims. Consult the model catalog for each public route and the reductions for established equivalences.
For \(y = X\beta + \sum_k Z_k u_k + e\), each component must declare its external coefficient domain, record incidence and weights, relationship, covariance layout, missingness, and prediction targets. The notation Z describes the mathematics; it does not require a production incidence matrix.
Covariance and residual definitions
These families may apply to different domains. A family available in a generic longitudinal API is not thereby available in the component or formula API.
| Family | Definition or required distinction |
|---|---|
| Homogeneous / heterogeneous diagonal | \(\sigma^2 I\) / \(\operatorname{diag}(\sigma_j^2)\); distinguish trait, residual-group, and level-domain variances |
| Unstructured SPD | \(LL^{\mathsf T}\) with positive diagonal L; log-Cholesky is a parameterization, not another covariance family |
| Compound symmetry | \(\sigma^2((1-\rho)I+\rho J)\); admissible rho depends on dimension |
| Heterogeneous compound symmetry | \(D((1-\rho)I+\rho J)D\), where D contains marginal standard deviations |
| Banded | Ordered levels and a declared bandwidth; specify omitted zeros and a positive-definite parameterization |
| Antedependence | Structured precision or modified Cholesky, with innovation variances and dependence coefficients; zero dependence reduces to diagonal covariance |
| Discrete AR(1) | \(\sigma^2\rho^{\lvert t_i-t_j\rvert}\) on integer positions, \(\lvert\rho\rvert<1\); heterogeneous scaling is \(DC_{\mathrm{AR1}}D\) |
| AR/MA/ARMA | Each order requires its own stationarity/invertibility, ordering, and derivative contract |
| Continuous exponential | \(\sigma^2\exp(-\phi\lvert t_i-t_j\rvert)\), \(\phi>0\), on irregular finite times; duplicate-time handling must be explicit |
| Unstructured within-subject residual | A bounded occasion covariance with observed principal submatrices; distinct from a permanent-environment random effect |
| Factor analytic FA(k) | \(\Lambda\Lambda^{\mathsf T}+\Psi\), positive diagonal specifics; declared rank and loading identification are required; compare derived covariances under permitted sign conventions |
| Reduced rank | \(\Lambda\Lambda^{\mathsf T}\) is singular when rank is below dimension; it requires an explicit singular precision/determinant/boundary contract |
| Spatial AR1 by AR1 | \(\sigma^2 C_{\mathrm{row}}\otimes C_{\mathrm{col}}\); declare grid order and missing-cell behavior, separately from random row/column effects |
| General separable covariance | \(S_1\otimes S_2\); both factors need validated ordering and derivatives; \(\log\det(S_1\otimes S_2)=d_2\log\det(S_1)+d_1\log\det(S_2)\) |
Support for one positive-interior family does not establish its zero-variance, singular, mixed-family, or optimized boundary extension. Component omission and fixed-parameter reductions remain useful when a chosen route excludes boundaries.