Canonical LMM capability catalog
Choosing an example for your own data? Start with Choose a genetic evaluation model.
This is the authoritative catalog of LMM routes and their recorded evidence. Status terms are defined in model architecture. Evidence is indexed in model qualification; reusable machinery and exact reductions are in the primitive registry and model reductions.
Development standalone packed single-step covariance refinement supports an explicit AI optimizer, accepted labelled ordinary-RHE starts and exclusive width-four block-PCG projections. Small same-model dense references check the score, AI matrix and update with repeated animals and partial traits, including cached/streamed record parity. This does not change the R coverage inventory below or establish accepted catalogue-scale REML and stochastic precision. See the packed route and limits.
R interface coverage inventory
This inventory follows the exported constructors, dispatch code and existing test sources; it is not a new numerical qualification run. The single-trait, multitrait, longitudinal, repeatability and direct/maternal tutorial models, plus grouped, AR(1) and exponential residual examples, have been executed with the 10,000-animal pedigree; other rows below still need a comparable user-workflow check. formula and formulas now select the same general gfit() adapter. Starts do not determine dispatch. Explicit scalar components can represent multiple independent pedigree/identity random intercepts. Named grouping vectors additionally declare correlated channels for a single response under a shared kernel. A typed gs_fit_control() explicitly selects the specialized compiled interface with complete starts. The broader public R API still contains capabilities beyond this adapter.
| Model or family | Simple gfit(formula = ...) |
Other exported R route | Current interface assessment |
|---|---|---|---|
| Single-trait animal model | Yes; short form or explicit gvc() |
Compiled via gs_fit_control(); gs_pedigree_records() / gs_pedigree_fit() |
10K tutorial passed: automatic starts, REML, fixed solve, summary, estimates, all-animal predictions and record results |
| Multitrait animal model with missing responses | Yes; named formulas and one pedigree component | Compiled via gs_fit_control(); gs_multitrait_pedigree_records() / gs_multitrait_pedigree_fit() |
10K tutorial passed; G/R and animal-trait predictions accessible; full interpretation/gallery check remains |
| Genetic random regression, irregular records | Yes; one trait and numeric basis columns | gs_longitudinal_pedigree_records() / gs_longitudinal_pedigree_fit() |
10K tutorial passed; genetic basis coefficients accessible; trajectory and uncertainty walkthrough remains |
| Repeatability: animal plus permanent environment | Yes; explicit scalar gvc() components |
Specialized repeatability or component LMM | General adapter implemented; repeatability added to the 10K tutorial; distinct grouping columns identify separate effects |
| Animal plus litter, herd or other common environment | Yes; explicit scalar random intercepts | Component LMM; specialized compiled controls for bounded combinations | Adapter tested with an extra common-group component against a tiny dense oracle; no separate 10K common-environment study |
| Identity-only random intercept | Yes; explicit gvc(..., kernel = gs_identity()) |
Component LMM; persistent gs_group() |
Uses the scalar independent-component adapter; not a separate solver |
| Multiple independent random groups | Yes; scalar or correlated intercept channels for one response | gs_lmm_records(), gs_lmm_component(), gs_lmm_model(), gs_lmm_fit(); persistent covariance sums |
General adapter no longer has the compiled route’s one-identity-group restriction; multitrait and random-coefficient extensions remain pending |
| Correlated direct/maternal effects | Yes; gvc(c(direct="id", maternal="dam"), "BW", kernel=PED) |
Two incidence channels sharing one pedigree relationship in gs_lmm_component(covariance = "unstructured") |
Dense GLS/BLUP and score checks passed; 10K pedigree / 14,844-record tutorial converged with automatic starts and default CHOLMOD controls; known channel IDs required |
| Maternal permanent environment | Expressible; separate scalar identity component over a duplicate dam grouping column | Add an independent identity component over dam IDs to the component model | Correlated-plus-independent common-group fixed solve tested; full maternal-environment combination remains unverified |
| Correlated random coefficients / reaction norms | One pedigree component, one trait only | Weighted component channels sharing a relationship; generic longitudinal routes | Basis and incidence must be supplied explicitly; broader combinations need workflow checks |
| Trait-specific effects / discrete GxE | Restricted to the same single pedigree component across traits | Component channels with absent incidence; persistent multivariate models; multitrait reduction where mappings agree | Recipe-expressible within each route’s residual/missingness restrictions, not a universal formula feature |
| Grouped independent residual variances | Yes; residual gvc(..., group = "sex") |
Specialized record constructors; gs_lmm_records(residual_group = ...); persistent weighted/group residual structures |
Dense references passed; 10K pedigree / 25,589-record tutorial converged with defaults; one response and random intercepts |
| AR(1) or continuous-exponential residual blocks | Yes; residual gvc(..., structure = "ar1" / "exponential", block = "id", time = "time") |
gs_lmm_residual_ar1() / gs_lmm_residual_exponential() with component LMM |
Dense references and 10K tutorial passed; exponential uses explicit score tolerance 1e-4 with stricter stopping limitation documented; unique positions and one variance group per block; no transfer of stochastic qualification |
| Genomic and combined genomic/structured covariance | No genomic gvc() kernel |
gs_genomic(), gs_dense_covariance(), gs_group(), gs_model_pedigree(), gs_sparse_random() with gs_model() / gs_model_fit() |
Public persistent R route; genotype input and matrix-free/dense route need a separate example |
| Generic multivariate covariance LMM | No, except the specialized animal model above | gs_multivariate_model() with trait covariance constructors, then gs_model_fit() |
Existing R tests cover unbalanced models; not yet a 10K gallery workflow |
| Complete multivariate RHE plus BLUP | No | gs_multivariate_rhe_blup() |
Separate estimation procedure; complete finite phenotypes required, not REML with missing traits |
| Generic longitudinal covariance LMM | No, except specialized pedigree random regression | gs_longitudinal_model() / gs_model_fit(); supplied basis and trait covariance |
R residual descriptor includes independent, compound symmetry, AR1, continuous AR1 and heterogeneous AR1; these are not all available in the component API |
| Balanced or arbitrary-record matrix-free longitudinal | No | gs_balanced_longitudinal_model() or gs_longitudinal_records_model() with gs_longitudinal_fit() |
RHE/REML/BLUP accessors exist; retain the recorded unresolved longitudinal failures below |
| Supplied relationship covariance or precision | No | gs_relationship_matrix() in component LMM; dense/sparse-random persistent constructors |
Bounded dense/packed inputs and supplied sparse precision are distinct. The relationship constructor defaults to a 5,000-level limit; a 10K case requires deliberate resource sizing |
| Fixed-rank factor analytic covariance | No | No public gs_lmm_component() covariance choice for FA |
Catalog records native implementation/evidence; R constructor gap, not a missing numerical algorithm |
| General direct/social effects with multiple contributors per record | No | No direct recipe constructor established by this audit | A channel carries one level/weight per record; multi-contributor correlated social incidence must not be assumed to fit that contract |
| ssGBLUP / internally constructed H inverse | No | No dedicated constructor in the component/pedigree APIs | Supplying a precomputed precision does not establish an implemented ssGBLUP workflow |
| ARMA, antedependence, spatial or Matern residual families | No | No matching fitted-family constructor found in the reviewed R APIs | Supplying a fixed covariance matrix is not equivalent to estimating that covariance family |
What users can retrieve
| Result family | Current access | Gap to address in the gallery |
|---|---|---|
| General formula, pedigree and independent components | summary(), coef(), gs_ranef(), fitted(), residuals(), diagnostics() |
Covariance and fixed effects in summary; named component predictions and record mapping. No common logLik() contract; route-specific likelihood/uncertainty remains in native diagnostics |
| Compiled formula | Summary, fixed effects, random effects, record values and diagnostics through the gs_fit methods |
Public prediction uncertainty is explicitly rejected; do not advertise it from backend capabilities |
| Specialized pedigree | Returned fit lists with variance/covariance, coefficients, status and route-specific prediction/uncertainty fields | Different result layouts; verify ID labels, requested targets and availability for each recipe. Specialized repeatability lacks its own PEV route |
| Component LMM | gs_lmm_fit() / gs_lmm_blup() return labelled components, predictions and diagnostics; dedicated print method |
No dedicated summary/coef/ranef S3 methods for this class in NAMESPACE; user examples currently need explicit result-field extraction |
| Persistent covariance | summary(), coef(), vcov(), predict(), gs_ranef(), contrasts and Wald helpers |
Availability depends on requested route and uncertainty; do not infer it from a method name alone |
| Balanced/record longitudinal | gs_longitudinal_rhe(), gs_longitudinal_reml(), gs_longitudinal_blup() |
Explain which estimation procedure ran and which results are valid |
Solver policy and outstanding defaults
Use CHOLMOD with selected inversion as the reference configuration for the new sparse-direct model examples. Selecting CHOLMOD alone is insufficient: coordinate tracing can still do many solves. The three pedigree tutorial models already select linear_solver = "sparse_direct", direct_backend = "cholmod", exact_trace_method = "selected_inverse". The general formula adapter and compiled-control constructor now follow this default; explicit solver choices remain authoritative.
The source currently differs from that policy:
- General pedigree formulas default to sparse direct, CHOLMOD and selected inversion. Explicit alternative backends use coordinate tracing unless the caller requests another trace method; unsupported requests are not repaired.
- The four specialized pedigree control constructors default to PCG, automatic backend and coordinate tracing.
- Compiled
gs_fit_control()defaults to CHOLMOD and selected inversion. Its selected-inversion argument istrace_route, notexact_trace_method. gs_lmm_control()already defaults to CHOLMOD. Its public signature does not expose the native component PCG/stochastic/adaptive controls; those native capabilities are a separate R-exposure gap.- Dense exact and matrix-free covariance routes are different algorithms; a global CHOLMOD substitution is not applicable to them.
Keep explicit solver choices and clear errors when requested CHOLMOD support is unavailable. Specialized low-level control defaults remain separate. The timing difference observed in the tutorial is not evidence that one backend is universally faster for every model and workload.
Minimal verification programme
Use 10,000 animals/individuals as the default demonstration size for scalable routes, with trait and observation counts stated separately. Tiny deterministic oracle tests remain tiny; dense reference routes and bounded uncertainty targets should not automatically be expanded to 10K dimensions.
Keep this coverage table as the inventory, the existing pedigree tutorial as the introductory example, and reuse build/examples/ for replaceable runtime outputs. Do not create a folder or a dated report for each attempted fit. Promote only selected, reviewed figures and concise results to website sources.
Check each recipe in this order: expressibility through exported R functions, correct model/ID mapping, convergence, result extraction, then agreement with an existing equivalent route or appropriate reference. Passing one example does not requalify every covariance/backend combination.
Implementation sequence
| Work | Current state | Next acceptance target |
|---|---|---|
Common explicit gvc() contract |
Formula aliases unified; supplied starts no longer select an engine | Preserve this rule for every extension |
| Defaults and results | General sparse-direct CHOLMOD selected inversion; shared summary and extraction for pedigree/independent components | Broader likelihood and uncertainty contracts remain separate work |
| Independent components | Scalar pedigree/identity intercept adapter implemented using the existing component engine | Repeatability tutorial and tiny dense multi-group reference |
| Correlated channels | Named grouping vectors lower to shared pedigree/identity channels for one response | Direct/maternal tutorial, dense GLS/BLUP and natural-score checks; broader missing-incidence and multitrait support remains separate |
| Residual structures | gvc() column bindings for grouped variance, AR1 and exponential blocks |
Dense GLS/BLUP, natural scores, group/time mapping and 10K tutorial workflows; multi-response and random-regression combinations remain separate |
| Additional relationships and model combinations | Dedicated genomic and longitudinal R routes exist | Map explicit kernels and trait/basis coordinates without hidden dispatch |
| Factor analytic covariance | Native capability, R descriptor absent | Agree identification/rank contract, then bind and verify |
Source review covered NAMESPACE, R/pedigree-formula.R, R/zz-formula-reml.R, R/component-lmm.R, the four specialized pedigree wrappers, R/model.R, R/multivariate.R and R/balanced-longitudinal.R. Existing R tests include pedigree/formula/repeatability tests, test-model.R, test-multivariate.R, test-multivariate-rhe-blup.R, and balanced/record longitudinal tests. test-independent-formula.R adds dense GLS/BLUP and start/dispatch checks through the general adapter. Native evidence is not a substitute for exported-R workflow checks of the remaining recipes.
Scientific representation and public route
Qualification below is scoped evidence, not complete package qualification. The persistent gs_model_pedigree() and formula gs_pedigree() constructors are separately exported.
The formula-compiler rows refer to explicit gs_fit_control() requests with complete starts. General formula calls instead use the pedigree or independent component adapters; see the pedigree tutorial. Compiler-row exclusions must not be transferred to that adapter implicitly.
| Representation | Public R entry point | Public C++ owner/entry point | Status | Scope |
|---|---|---|---|---|
| Single-trait covariance LMM | gs_model(), gs_model_fit(); exact convenience gsuite_reml_dense() |
greml ModelSpec, exact-dense and matrix-free evaluators |
qualified |
Explicit fixed design and covariance components; exact dense is small-oracle work, matrix-free is scalable/stochastic |
| Formula pedigree single trait | gs_pedigree(), gvc(), gfit() |
CompiledMmeSpecification / CompiledMmeSession |
qualified |
One pedigree intercept and residual through formula lowering |
| Formula pedigree multitrait, including missing traits | named formulas, gs_pedigree(), gvc(), gfit() |
compiled MME patterned residual units | qualified |
Observed scalar trait records; missing traits are absent, never imputed |
| Balanced longitudinal | gs_balanced_longitudinal_model(), gs_longitudinal_fit() |
StructuredLongitudinalModel |
qualified |
Complete common grid, supplied bases, RHE/REML/BLUP and new-grid projection |
| Irregular generic record-longitudinal | gs_longitudinal_records_model(), gs_longitudinal_fit() |
RecordLongitudinalModel |
qualified |
Observed scalar records, unequal counts, arbitrary order, supplied per-component bases |
| Pedigree single trait | gs_pedigree_records(), gs_pedigree_fit() |
pedigree MME and pedigree REML sessions | qualified |
All pedigree animals, including unphenotyped animals |
| Pedigree incomplete multitrait | gs_multitrait_pedigree_records(), gs_multitrait_pedigree_fit() |
multitrait pedigree MME/REML sessions | qualified |
Arbitrary observed trait subsets and correlated observed-pattern residual blocks |
| Pedigree irregular longitudinal random regression | gs_longitudinal_pedigree_records(), gs_longitudinal_pedigree_fit() |
LongitudinalPedigreeMmeSufficientStatistics and retained session |
qualified |
One pedigree random-regression component, supplied basis, grouped independent residuals, prediction rows |
| Specialized repeatability | gs_repeatability_pedigree_records(), gs_repeatability_pedigree_fit() |
repeatability pedigree REML session | qualified |
Additive pedigree plus one identity permanent-environment intercept |
| Generic scalar-record component LMM | gs_lmm_records(), gs_lmm_model(), gs_lmm_fit() |
ComponentLmm* and compiled MME |
qualified |
Multiple independent component groups and channels; identity, pedigree, or bounded supplied relationship |
| Identity/group/common-environment recipes | gs_relationship_identity(), gs_lmm_component() |
component LMM identity relationship | qualified |
Permanent environment, litter, herd, year, site, block, or equivalent names are composition recipes, not separate engines |
| Correlated direct/maternal or random-coefficient channels | multi-channel gs_lmm_component(..., covariance = "unstructured") |
component-major shared-relationship channel block | qualified |
Correlated channels must share one relationship component; cross-component covariance is unsupported |
| Fixed-rank factor-analytic covariance | No public R constructor for this covariance layout | greml FactorAnalyticCovarianceLayout and component/compiled-MME declarations |
qualified C++ covariance layout, exact REML and exact retained BLUP; fixed-state PCG and stochastic evaluation also qualified |
Declared rank, lower-triangular identification, positive pivots and specific variances; stochastic covariance optimization is unqualified |
| AR(1) residual blocks | gs_lmm_residual_ar1() |
typed component-LMM residual blocks | qualified |
Integer occasions, positive or negative interior rho, block-level variance groups |
| Continuous exponential residual blocks | gs_lmm_residual_exponential() |
typed component-LMM residual blocks | qualified |
Irregular finite times, positive interior phi, block-level variance groups |
Model by numerical execution
Each cell classifies that exact model/backend/trace combination. Dense code is production only for the explicitly small exact route; elsewhere it is a test oracle.
| Model route | Dense | PCG | CHOLMOD coordinate | CHOLMOD selected inverse | PARDISO coordinate | PARDISO selected_solve PEV |
Stochastic trace / SLQ |
|---|---|---|---|---|---|---|---|
| Generic single-trait covariance | qualified |
qualified matrix-free |
not_applicable |
not_applicable |
not_applicable |
not_applicable |
qualified matrix-free Hutchinson/SLQ |
| Formula pedigree compiler | not_applicable |
unsupported in the public formula route |
qualified |
qualified |
qualified |
unsupported in the formula result |
unsupported |
| Pedigree single trait | oracle qualified |
qualified fixed covariance |
qualified fixed/REML |
qualified REML traces |
qualified fixed/REML |
qualified bounded exact target PEV/reliability |
qualified fixed-probe stochastic REML/SLQ |
| Pedigree incomplete multitrait | oracle qualified |
qualified fixed covariance and fixed-common-probe stochastic REML optimization |
qualified fixed/REML |
qualified REML traces |
qualified fixed/REML |
qualified bounded exact within-animal PEV blocks |
qualified fixed-parameter evaluation and safeguarded covariance optimization; SLQ likelihood is available only when its requested precision passes |
| Pedigree irregular longitudinal | oracle qualified |
qualified fixed covariance |
qualified fixed/REML |
qualified fixed/REML traces |
qualified fixed/REML |
qualified bounded coefficient and trajectory PEV/reliability |
unsupported in this sparse pedigree route |
| Specialized repeatability | oracle qualified |
qualified fixed covariance |
qualified fixed/REML |
qualified REML traces |
qualified fixed/REML |
unsupported on the specialized public route |
unsupported |
| Generic component LMM | oracle qualified |
qualified fixed-covariance C++ BLUP and fixed-budget or explicitly selected adaptive stochastic REML for identity/pedigree relationships, independent residuals, and scalar/complete or arbitrary missing channels |
qualified fixed/REML |
qualified; canonical trace and uncertainty route |
unsupported |
unsupported |
qualified fixed-state evaluation and safeguarded fixed/adaptive covariance optimization in the stated PCG scope; adaptive certification uses a declared fixed final prefix and SLQ likelihood is conditional on its precision contract |
| Component LMM with FA covariance | covariance algebra oracle qualified |
qualified fixed-state coefficient/BLUP and fixed-state stochastic score/AI; stochastic covariance optimization and post-optimization BLUP implemented_unqualified |
qualified fixed state, exact REML, and retained BLUP |
prediction uncertainty not qualified for FA | implemented_unqualified |
unsupported |
qualified fixed-state score/AI only; optimization and stochastic retained-state finalization are unqualified |
| Component LMM with supplied sparse precision | oracle qualified |
qualified fixed-state coefficient/BLUP and stochastic score/AI evaluation only; covariance optimization implemented_unqualified |
qualified fixed/REML |
qualified retained uncertainty |
unsupported |
unsupported |
qualified fixed-state trace/score/AI; covariance optimization implemented_unqualified |
| Component LMM with AR(1) residuals | oracle qualified |
qualified fixed-state evaluation and stochastic covariance optimization |
qualified fixed/REML |
qualified retained uncertainty |
unsupported |
unsupported |
qualified fixed-state evaluation and safeguarded covariance optimization |
| Component LMM with continuous-exponential residuals | oracle qualified |
qualified fixed-state coefficient, derivative, trace, AI, and PCG evaluation; covariance optimization implemented_unqualified after line-search exhaustion |
qualified fixed/REML |
qualified retained uncertainty |
unsupported |
unsupported |
qualified fixed-state evaluation only; covariance optimization implemented_unqualified |
| Balanced longitudinal | oracle qualified |
qualified matrix-free |
not_applicable |
not_applicable |
not_applicable |
not_applicable |
qualified Hutchinson/SLQ, including opt-in determinant deferral |
| Generic irregular record-longitudinal | oracle qualified |
qualified matrix-free |
not_applicable |
not_applicable |
not_applicable |
not_applicable |
qualified Hutchinson/SLQ, including opt-in determinant deferral |
PARDISO selected inversion is unsupported for every route. PARDISO capability metadata reports this explicitly and no fallback is permitted. Longitudinal pedigree coordinate tracing is a bounded moderate-problem PARDISO route; it does not imply that selected inversion is absent globally. The separate selected_solve cells above use documented retained-factor multi-RHS solves; they do not change PARDISO’s selected-inversion classification.
For incomplete multitrait stochastic REML, covariance optimization, optional approximate restricted likelihood, and all-animal BLUP are separate result capabilities. Score/AI convergence and BLUP can succeed when final SLQ exceeds its requested standard-error limit; in that case likelihood is explicitly unavailable and its estimate, uncertainty, and work remain diagnostic only.
The same separation applies to qualified stochastic component REML. Its missing-channel claim means absent canonical scalar records, not imputation or complete-case deletion. The scalable supplied sparse-precision constructor and structured-residual PCG/stochastic paths are retained implementations, but they are not a completed qualified combination. Supplied precision is fixed-state qualified; its stochastic optimizer is not. AR(1) fixed-state evaluation and stochastic optimization are qualified. Continuous exponential coefficient, derivative, trace, AI, and PCG evaluation is fixed-state qualified, whereas its stochastic optimizer ended in explicit score-merit line-search exhaustion. The combined supplied-precision/structured-residual stochastic illustration was not run. Exact CHOLMOD component capabilities in those rows remain qualified and unchanged.
The optional adaptive component policy preserves those scientific boundaries. It uses deterministic nested probe prefixes and phase-specific PCG tolerances for exploratory, accepted-state, and certification work; the fixed-budget path remains the default. Final convergence is always recomputed with the declared fixed certification prefix and requires score compatibility, deterministic stationarity, and an absolute transformed-parameter uncertainty envelope. Adaptive execution is qualified for the independent-residual identity/ pedigree scope. The bounded FA revisit ended with explicit insufficient parameter-step precision, so it does not change the FA row above.
Inference and output
| Model route | Fixed covariance | REML optimization | Retained BLUP / trajectories | PEV / reliability | Covariance boundary | Resource/thread/retained-state diagnostics |
|---|---|---|---|---|---|---|
| Generic single-trait covariance | qualified |
qualified exact or stochastic by selected route |
qualified |
qualified selected prediction/contrast uncertainty where requested |
qualified only for its documented scalar zero-eligible strategy |
qualified |
| Formula pedigree compiler | qualified |
qualified positive interior |
qualified |
unsupported in the public formula result |
unsupported |
qualified |
| Pedigree single trait | qualified |
qualified positive interior |
qualified all animals |
qualified CHOLMOD selected_inverse or PARDISO selected_solve complete-MME PEV/reliability |
unsupported |
qualified |
| Pedigree incomplete multitrait | qualified |
qualified positive-interior G,R |
qualified all animal-trait coefficients |
qualified CHOLMOD selected_inverse or PARDISO selected_solve within-animal PEV blocks |
unsupported |
qualified |
| Pedigree irregular longitudinal | qualified |
qualified positive-interior Q and grouped residuals |
qualified latent and observed/prediction trajectories |
qualified CHOLMOD selected_inverse or PARDISO selected_solve coefficient and trajectory PEV/reliability |
unsupported |
qualified |
| Specialized repeatability | qualified |
qualified positive interior |
qualified |
unsupported on the specialized public route; use component LMM for qualified component uncertainty |
unsupported |
qualified |
| Generic component LMM, independent residual | qualified by exact CHOLMOD and C++ PCG for identity/pedigree relationships with scalar, complete correlated, and arbitrary missing channels |
qualified exact hybrid EM-AI and fixed-common-probe stochastic explicit-AI optimization in the stated PCG scope |
qualified component coefficients/contributions and all known levels; stochastic optimization reuses the accepted response |
qualified retained CHOLMOD within-level blocks; unsupported from PCG |
qualified for zero scalar and rank-one two-channel blocks only |
qualified; optimizer, optional likelihood, BLUP, and logical solver states are distinct |
| Component LMM, fixed-rank FA covariance | qualified through identical derived covariance in exact CHOLMOD and matrix-free PCG at fixed state |
exact CHOLMOD optimization qualified; stochastic optimization implemented_unqualified |
exact retained-state BLUP qualified; fixed-state PCG coefficients/BLUP qualified; stochastic post-optimization BLUP unqualified |
not qualified for this covariance layout | singular/zero-specific boundaries unsupported | qualified algebra, identification, derivatives, Jacobian diagnostics, fixed-state execution and exact result finalization |
| Component LMM, AR(1) residual | qualified |
qualified positive-interior residual parameters by exact and stochastic routes |
qualified |
qualified for random components |
implemented_unqualified when combined with active random-component boundaries |
qualified |
| Component LMM, continuous-exponential residual | qualified fixed state |
exact optimization qualified; stochastic optimization implemented_unqualified |
exact-route BLUP qualified; stochastic post-optimization BLUP not qualified |
qualified for random components on the exact route |
implemented_unqualified when combined with active random-component boundaries |
fixed-state diagnostics qualified |
| Component LMM, supplied sparse precision | qualified fixed state |
exact optimization retains its existing scope; scalable stochastic optimization implemented_unqualified |
fixed-state PCG BLUP qualified |
exact-route uncertainty unchanged; unsupported from PCG | implemented_unqualified |
fixed-state diagnostics qualified |
| Balanced longitudinal | qualified |
qualified positive interior |
qualified latent/common-grid trajectories |
qualified selected-target conditional uncertainty; not selected-inverse MME PEV |
unsupported for singular Q |
qualified |
| Generic irregular record-longitudinal | qualified |
qualified positive interior |
qualified observed/prediction records |
unsupported for full coefficient PEV/reliability |
unsupported |
qualified |
All PEV/reliability entries are plug-in uncertainty conditional on fitted covariance parameters. PCG has no retained direct factor, so exact PEV is unsupported. PARDISO selected_inverse remains unsupported. PARDISO selected_solve instead solves the requested complete-MME target columns from the retained accepted factor, with explicit system, entry, batch, and memory bounds.
CHOLMOD support for longitudinal pedigree models
The irregular-record public path is qualified within the scope below. gs_longitudinal_pedigree_reml_control() exposes CHOLMOD selected-inverse traces and prediction error; the same canonical MME is consumed by LongitudinalPedigreeSparseDirectSession; focused native and R tests cover selected-inverse trace parity, retained-factor longitudinal PEV, trajectory uncertainty, and typed work accounting. The PCG block-preconditioned fixed solve and PARDISO coordinate-trace REML profile are independently qualified; they do not replace or weaken the CHOLMOD path.
Public API and implementation mapping
| R API | C++ implementation | Relationship to shared machinery |
|---|---|---|
gs_model_pedigree() with gs_model() / gs_model_fit() |
unified model facade structured pedigree term | Ordered parent indices and optional Mendelian variances; separate from the formula kernel |
gfit() with gs_pedigree() / gvc() |
compiled MME | Formula lowering adapter over the shared compiled sparse-MME session; deliberately narrower than gs_lmm_*() |
gs_pedigree_records(), gs_pedigree_start(), gs_pedigree_reml_control(), gs_pedigree_fit() |
scalar pedigree MME/REML | Specialized animal-model adapter and reduction oracle |
gs_multitrait_pedigree_records(), gs_multitrait_pedigree_start(), gs_multitrait_pedigree_reml_control(), gs_multitrait_pedigree_fit() |
multitrait pedigree MME/REML | Specialized patterned-trait adapter over retained direct-session machinery |
gs_longitudinal_pedigree_records(), gs_longitudinal_pedigree_start(), gs_longitudinal_pedigree_reml_control(), gs_longitudinal_pedigree_fit() |
longitudinal pedigree MME/REML | Specialized irregular-record adapter using the compiled MME and retained direct session |
gs_repeatability_pedigree_records(), gs_repeatability_pedigree_start(), gs_repeatability_pedigree_reml_control(), gs_repeatability_pedigree_fit() |
repeatability pedigree REML | Specialized two-component reduction oracle; generic construction is a component-LMM recipe |
gs_lmm_records(), gs_lmm_component(), gs_lmm_model(), gs_lmm_control(), gs_lmm_fit(), gs_lmm_blup() |
component LMM | Canonical scalar-record compositional engine; identity/pedigree/supplied relationships, hybrid EM-AI, active boundaries, residual blocks, BLUP and uncertainty |
gs_balanced_longitudinal_model(), gs_longitudinal_control(), gs_longitudinal_fit() |
structured longitudinal | Specialized matrix-free common-grid workflow |
gs_longitudinal_records_model() / gs_longitudinal_fit() |
record longitudinal | Generic matrix-free observed-record workflow; not the pedigree sparse-MME API |
gs_multivariate_model(), gs_multivariate_rhe_blup() |
multivariate covariance/inference | Matrix-free complete/unbalanced multivariate workflows, separate from sparse pedigree multitrait |
| No direct R plan/session object | CompiledMmePlan, CompiledMmeSession, gsolve retained direct/selected-inverse sessions |
Public native primitives consumed by model-specific R adapters; intentionally not serialized as mutable R sessions |
| No dedicated R constructor | SparseIndexedCovarianceModel, SparseIndexedRemlSystem |
Public native sparse-indexed engine; its standalone native combinations are implemented_unqualified unless a catalogued adapter and focused evidence name them |
Named biological models such as permanent environment, litter, herd-year, direct/maternal covariance, random slopes, and reaction norms are component recipes when their relationship and incidence contracts fit gs_lmm_*(). They must not receive duplicate model-specific production engines.
Implemented but unqualified combinations
- Simultaneous component active boundaries and AR(1)/exponential residual correlation; both mechanisms are qualified separately.
- Standalone combinations of the public native
SparseIndexedCovarianceModelandSparseIndexedRemlSystemthat have no matched public R adapter and focused end-to-end qualification.
These are qualification or route-integration gaps, not new global algorithms.
Genuinely unsupported combinations
- PARDISO selected inversion.
- Exact selected-inverse PEV from PCG.
- Cross-component covariance outside channels sharing one relationship group.
- Active semidefinite boundaries for covariance blocks larger than two, and zero/singular residual covariance.
- Mixed residual structures in one component fit, heterogeneous temporal marginal scales, ARMA, antedependence, spatial, Matérn, and spatiotemporal residuals.
- New random-effect levels in prediction rows.
- Genotype/GRM construction, \(H^{-1}\), and ssGBLUP in the component/pedigree LMM APIs.
- A general component formula parser; the canonical public component API is constructor-based.
Anti-duplication guard
Future work must not propose selected-inverse infrastructure, selected-inverse trace contractions, bounded retained-factor target solves, complete-MME PEV/reliability, identity/group components, permanent/common environment effects, correlated channels, structured longitudinal residual blocks, scalar/rank-one active boundaries, or existing pedigree/multitrait/longitudinal PCG/direct REML and BLUP as new global capabilities. A future extension must name the exact unsupported or implemented-unqualified cell it changes.
Evidence-based future selection
No additional implementation is needed for longitudinal pedigree CHOLMOD selected inversion or PEV/reliability: that public path is already qualified. Potential bounded future work, if prioritized, is limited to catalogued gaps:
- A qualification-only closure for an
implemented_unqualifiedcombination, such as component active boundaries together with correlated residual blocks, without adding either mechanism again. - Specialized repeatability uncertainty integration, only if that public convenience route must expose the existing complete-MME machinery rather than using the qualified component recipe.
- A genuinely unsupported residual family or prediction contract selected from the catalog, implemented through the existing component and residual abstractions rather than a parallel model engine.
These candidates have no committed implementation schedule. Qualification work should be chosen only when the corresponding public combination is useful.
Scientific recipes and covariance definitions are summarized in model recipes; they do not assign qualification status.
Native fixed-score Gaussian environmental moments
greml::GxeMomentCache implements bounded native moment summaries for V=theta_g K+theta_I D_e K D_e+theta_N D_e^2+theta_e I with supplied e=E alpha. It retains ordinary fixed projection, raw estimates, rank/conditioning and probe MCSE, with a separate phenotype summary. The independent references and matched memory/runtime evidence are recorded in the owner contract (unpublished greml contract). This is a numerical research capability, not a scientifically calibrated variance estimator, learned-score fit, SNP interaction test, prediction workflow, R/YAML interface, production qualification or release. Existing longitudinal/FA failures remain recorded.
The fixed-design Gaussian scientific study (unpublished greml research report) adds conditional moment-recovery and projected-identifiability evidence without changing the native route. Weak relationships, aliases and projection can prevent useful interaction/noise separation. Oracle sampling covariance agrees with replication; exploratory applied plug-in intervals do not establish calibrated uncertainty. General sampling inference and learned-score fitting remain unqualified; the recommendation from that study was targeted uncertainty validation first.
The subsequent native sampling_covariance method provides the complete Gaussian quadratic covariance and its propagation at an explicit working state, with separate numerical trace MCSE. Its sufficient SPD certificate requires nonnegative components and positive residual variance; signed raw states are not repaired or assumed indefinite. Rank aliases and indefinite estimated trace covariances return explicit unavailable results. See the contract (unpublished greml contract) and uncertainty evidence (unpublished greml research report). This bounded implementation does not itself select a working estimator, qualify applied coverage, or authorize learned-score inference or release.
A research comparison of practical uncertainty (unpublished greml research report) retains the same full-data estimates and assesses GENIE-style genomic deletion over frozen 40-window LD panels. All-window jackknife availability does not establish interval calibration: additive and interaction-plus-noise targets undercover, with strong block-structure sensitivity. No general uncertainty procedure, production jackknife API, learned-score qualification or release is established.
Randomized G×E variance-component estimation
The public capability implements the GENIE estimator. Method/software attribution and the existing native API names are retained.
Implemented and numerically compared; partial method support; unreleased. greml::GenieMomentCache implements separate G, per-exposure GxE/NxE and residual components, matched Gaussian-probe moment equations, trace-weighted fractions and full genomic delete-block jackknife. Dense references and unchanged pinned GENIE agree on validated full-rank SPD systems; source/precision conventions and legacy multi-exposure output labels are documented. Exact published testing-tail provenance, annotation/enrichment support, missing-data parity and original QR rank behavior remain incomplete. Contract (unpublished greml contract) and evidence (unpublished greml research report) distinguish these states. No R/YAML frontend, learned score or general performance/scientific qualification is claimed. Prior fixed-score uncertainty and longitudinal/FA/ARG limits remain.
Binary annotations and reference QR
Implemented and numerically/reference-software validated for the documented native route; unreleased. Binary annotation/block covariances and intersection counts support partitioned and unpartitioned G+GxE+NxE moments, overlap-category fractions/enrichments and complete jackknife covariance. Default reference QR admits indefinite and deficient basic solutions with rank/identification metadata; checked-SPD remains an explicit choice, and other methods retain their defaults. Published-result genome-wide two-sided and conditional annotation upper-tail zero-null conventions are reconstructed from original tables, with provenance limits recorded. See the contract (unpublished greml contract) and evidence (unpublished greml research report). This extends the earlier genome-wide entry; it adds no R/YAML, automatic annotation construction, missing-data parity, general scientific/performance qualification or release.
Selected covariance models with missing observations
Implemented and mathematically/reference-software validated for the documented native route; unreleased. G, G+GxE and G+GxE+NxE reuse the same annotation kernels, moment/solver choices and complete genomic jackknife. Explicit masks preserve full-sample transforms/probe order; native preparation handles the source phenotype/exposure/covariate conventions and HWE marker completion. This later extension supersedes earlier model-subset and missing-data exclusions for the supplied aligned, full-rank-intercept route. See the owner contract (unpublished greml contract) and correctness evidence (unpublished greml research report). No original wall-clock RNG replay, automatic identity matching/filtering, other frontend, R/YAML, general scientific/performance qualification or release is claimed.
Native file adapter for Randomized G×E estimation
Implemented native application route; unreleased and not generally qualified. gsuite_model_driver gxe binds real BED/keyed-table inputs to the existing GENIE estimator for G, G+G×E and G+G×E+NxE, including supplied binary annotations. It adds explicit alignment/QC, seeded frozen completion, genomic-block inputs, resource guards and full/deletion output. The underlying numerical route and historical qualification limits remain unchanged. See the adapter contract (unpublished greml contract); a real-data scientific or large-scale acceptance result is not claimed by implementation alone.
Supervised environmental-score moments
Implemented and independently numerically validated native research primitive; scientifically unqualified; unreleased. GxeMomentCache::score_objective and fit_score add a complete projected finite-probe objective/analytical gradient and unregularized alternating score fit. Returned coefficients match the final score; rank, stationarity, small-step stagnation and iteration limits remain explicit. This is not complete ENGINE parity: no regularization, cross-fitting, post-learning uncertainty, new R/YAML/file interface or scale qualification. The prior fixed-score/GENIE scientific evidence and limitations remain intact.
Regularized environmental scores and variant-split moments
Implemented and independently numerically validated native research route; scientifically unqualified; unreleased. fit_score_regularized adds spherical threshold schedules; gxe_variant_split_plan/fit_score_variant_split add disjoint mean-normalized marker halves, swapped evaluation, sign alignment and separate held-out/full estimates. Existing GENIE and disabled-threshold results are preserved. No SE-dependent coefficient gate, learned-score uncertainty, automatic tuning, new frontend or broad empirical/scaling qualification is added.
Environmental-score uncertainty diagnostics and paired refits
Implemented and independently numerically validated native research primitives; unreleased and scientifically unqualified. The separate greml inference API supports smooth local geometry, explicit probe-only delta propagation, source conditional-SE gating and paired S2 tests from complete observation-group refits. Literal and component-scale pseudo-values are distinguished; conventional component covariance is limited to equal groups. This does not provide a generally valid analytic SE for regularized data-learned scores or the unverified original component-null test. GENIE and earlier point-estimation/uncertainty qualifications remain intact.
Complete native environmental-score refit inference
fit_gxe_score_inference implements complete full/deletion refit orchestration for supplied kernels and y/E/C, reusing regularization, variant splits and S2 paired inference. Shared sample/group identity and compact convergence/failure records replace manual deletion-cache plumbing. Fixed genotype transformations, declared preprocessing/baseline and valid observation-group assumptions define the route. It remains scientifically unqualified and unreleased; original selected-component null testing and general analytic learned-score SEs are not claimed. Earlier primitive/GENIE qualifications remain preserved.
The complete native refit workflow passed 11 native and 14 installed full/core checks on 27 October 2026, including independent dense mathematical references. It is implemented and independently numerically validated, scientifically unqualified and unreleased. See the evidence/limits; earlier qualification evidence is retained.
Supervised-score native file execution
The optional gsuite_model_driver engine route now binds BED/keyed tables to the existing native ENGINE-attributed inference workflow. It uses explicit observation groups, starts and baseline weights; supplied exposure/baseline scales and full-FAM genotype transforms stay fixed on deletion. GENIE input infrastructure and packed operators are reused without changing their methods. This is a bounded native file capability, scientifically unqualified and unreleased; original null-test, calibration and scaling limits remain intact. No new R/YAML or public launcher route is claimed.
The native ENGINE file adapter passed 13 native and 14 installed full/core checks on 27 October 2026, plus installed single/split command replay and licence refusal. Independent dense arithmetic maximum scaled error was 1.18e-13. It is implemented and independently numerically validated for this bounded route, scientifically unqualified and unreleased. See the evidence/limits; earlier qualifications remain preserved.
Primary terminology is ancestry-specific ssSNPBLUP, with ANCESTRY_UNCOR/ANCESTRY_COR and optional local ancestry proportion (LAP). BOA/LBP names remain compatibility aliases; model restrictions and defaults are unchanged.
The following ancestry-specific entries retain the scope of each individual native API. Current standalone composition is described in ancestry-specific YAML/standalone (source-checkout reference: boa-single-step-yaml.md); R integration remains deferred.
Native fixed-covariance single-step ANCESTRY_UNCOR and ANCESTRY_COR use the optional greml::bed_adapter ancestry marker factor with gmat/gbits packed known-phase ancestry resources and the existing one-trait conditional single-step solver. Selected exact breeding-value PEV/reliability reuse the existing numerical gates. There is no R/YAML adapter, covariance learning or large-scale qualification. See the native ancestry-specific contract (unpublished greml reference: single_step_boa.md).
The separate native exact ancestry-specific REML route (unpublished greml reference: single_step_boa_reml.md) estimates diagonal (ANCESTRY_UNCOR) or full SPD (ANCESTRY_COR) breed SNP covariance and scalar residual variance while keeping pedigree scale, C0 and ancestry coding fixed. It reuses conditional single-step solves, pedigree factors and selected plug-in PEV, with explicit exact-work caps. No R/YAML, stochastic estimation, parameter standard errors or large-scale qualification is added.
The native general multiple-trait ancestry-specific route (unpublished greml reference: single_step_boa_multitrait.md) supports fixed ANCESTRY_UNCOR within-ancestry trait blocks or full nonseparable ANCESTRY_COR ancestry-by-trait SNP covariance, with fixed base trait covariance, prepared missing- trait records, complete pedigree predictions and exact selected PEV/cross-covariance. Trait count is declared and budgeted; two/three traits are focused validation cases. Multiple-trait REML, longitudinal ancestry-specific and R/YAML interfaces are not added.
The separate native exact multiple-trait ancestry-specific REML route (unpublished greml reference: single_step_boa_multitrait_reml.md) fits ANCESTRY_UNCOR within-ancestry trait blocks or full ANCESTRY_COR ancestry-by-trait SNP covariance and residual trait covariance, keeping K0/C0 and ancestry coding fixed. Missing traits are integrated. Exact work caps, retained pedigree factors and fitted-state selected PEV retain existing equation gates. Two/three traits are focused validation cases; no stochastic, R/YAML or longitudinal extension is added.
The separate native longitudinal/random-regression ancestry-specific adapter (unpublished greml reference: single_step_boa_longitudinal.md) reuses general ANCESTRY_UNCOR/ANCESTRY_COR coefficient covariance and existing longitudinal basis/index contracts for irregular repeated records, complete pedigree trajectory prediction and exact selected trajectory PEV/cross-covariance. Trait and basis counts are declared; all breed, base/pedigree and residual covariances are fixed. This adds no longitudinal REML, R/YAML dispatch or large-scale qualification; earlier scalar/multiple-trait routes and their evidence are unchanged.
The separate native exact longitudinal ancestry-specific REML route (unpublished greml reference: single_step_boa_longitudinal_reml.md) estimates ANCESTRY_UNCOR/ANCESTRY_COR ancestry-by-trait-by-basis covariance and same-occasion residual trait covariance while keeping K0/C0 and basis values fixed. Genetic coefficient width and observed residual trait width are distinct. Missing traits are integrated; fitted trajectories and selected conditional PEV reuse existing equation gates and exact-work caps. No serial residual parameter estimation, R/YAML dispatch or large-scale qualification is added.
The native multiple-component ancestry-specific extension (unpublished greml reference: single_step_boa_components.md) supports named disjoint SNP covariance partitions plus independent-level random effects such as permanent environment. Both ANCESTRY_UNCOR and ANCESTRY_COR support fixed prediction, joint selected PEV and exact component REML, keeping K0/C0 fixed. The existing pedigree conditional and equation gates are reused. Small numerical references cover scalar-component optima and matrix-component initial states; component identifiability, large-scale qualification and R/YAML dispatch are not established by this extension.
The native stochastic ancestry-specific REML option (unpublished greml reference: single_step_boa_stochastic_reml.md) supports ANCESTRY_UNCOR/ANCESTRY_COR with multiple SNP and independent-level random components, reusing common Rademacher probes, existing solves and fixed K0/C0. Moment/score Monte Carlo standard errors and one independent frozen-state probe-bank check control acceptance. Both original/transformed equation gates and total solve caps remain in force. Exact remains the default; no stochastic likelihood, R/YAML or large-scale/scientific qualification is added.
The experimental ancestry-specific YAML/standalone adapter (source-checkout reference: boa-single-step-yaml.md) now exposes ANCESTRY_UNCOR/ANCESTRY_COR fixed prediction, exact selected contrast PEV, exact and stochastic REML through the existing licensed model driver. It reuses prepared sparse trait/ basis records, packed phased alleles and explicit ancestry identities/frequencies. Named SNP partitions and independent-level random components retain fixed K0/C0; labelled diagnostics include score/moment MCSE and independent stochastic validation. The earlier native-only scope statements describe those individual implementations; this adapter adds their standalone composition. R remains deferred. Ordinary pedigree and independent occasion residuals only; no new scale or scientific qualification is implied.
The explicit partial-pedigree ancestry-specific option (source-checkout reference: boa-partial-pedigree.md) supports native and YAML/standalone fixed-covariance ANCESTRY_UNCOR using ancestry-specific partial relationships, separate fixed base channel covariances and exact selected total PEV. Active breed supports have exact zero incidence outside their support; conditional sparse factors and packed SNP products avoid dense P/G/H construction. Two-breed scalar and three-breed two-trait dense references define the initial numerical scope. Current partial REML, COR and LAP coverage is described below; R fitting remains deferred; deterministic active innovations and unassigned missing-parent breeds are rejected.
Optional fixed reference-ancestry LAP (source-checkout reference: boa-reference-lbp.md) now composes a correlated non-reference contrast/channel covariance with partial-pedigree ANCESTRY_UNCOR or ANCESTRY_COR through YAML/standalone. It combines pedigree LAP contrasts before total-LAP single-step conditioning, uses packed ancestry products and retained nonseparable sparse factors, and includes LAP in selected total/joint PEV. Two-/three-breed numerical references include transformed-reference equivalence and exact purebred/F1 zeros. Breed/LAP-specific selected PEV and final diagnostics are described in the completed model coverage (source-checkout reference: boa-model-coverage.md). R fitting remains deferred. Earlier partial-pedigree-only scope statements describe that initial implementation, not the optional LAP composition.
Exact partial-pedigree ancestry-specific REML with reference-ancestry LAP (source-checkout reference: boa-partial-reml.md) is available through YAML/standalone. It estimates selected within-ancestry SNP, LAP, independent random and residual covariance blocks while keeping K_b/C0 fixed. Analytic scores include covariance-dependent LAP pedigree conditioning; L-BFGS acceptance requires fresh scores and prediction equation gates. The first route bounds observation-space likelihood and solver dimensions; selected PEV is conditional on fitted covariances. R fitting remains deferred; partial COR and component PEV (source-checkout reference: boa-model-coverage.md) are available. See the linked guide for work accounting and qualification limits.
Stochastic partial-pedigree ancestry-specific/LAP REML (source-checkout reference: boa-partial-stochastic-reml.md) uses checked SNP-coordinate projections, full analytic LAP conditional derivatives, Monte Carlo score errors and a frozen independent validation bank. Average-information updates use score merit, not an approximate likelihood objective. Fixed K_b/C0, existing equation gates and covariance-conditional selected PEV are preserved. Exact remains the default; stochastic likelihood, R fitting and broad large-scale/scientific qualification are not added.
Current partial-pedigree ancestry-specific coverage (source-checkout reference: boa-model-coverage.md) defines the COR covariance contract, sparse breed/LAP PEV and final exact/sampled identifiability diagnostics. Structured simulation (source-checkout reference: boa-simulation.md) is available through gsim with YAML/standalone fitting.
Partial-pedigree ancestry-specific worker controls (source-checkout reference: boa-model-coverage.md#explicit-worker-controls) cover marker products, PCG vector execution and independent exact-PEV targets. They default to one and retain existing model and precision contracts.
Partial-pedigree ancestry-specific also supports retained execution and shared geometry (source-checkout reference: boa-execution-reuse.md) for stochastic REML and selected exact PEV, with explicit qnn_data preconditioning, budgeted resident/packed marker products shared with LAP, and retained worker buffers. The default remains qnn_reuse; R fitting and large-scale REML/PEV qualification remain deferred.
Partial-pedigree ancestry-specific worker controls (source-checkout reference: boa-model-coverage.md#explicit-worker-controls) cover marker products, PCG vector execution and independent exact-PEV targets. They default to one and retain existing model and precision contracts.