Learn R Programming

sommer (version 4.5.27)

.mmes_control_internal: Modular Mixed Model Numerical Controls

Description

Assigns numerical requests to mathematical modules. Model-dependent eligibility is checked during fitting. No new combinations of numerical methods are implied.

Usage

.mmes_control_internal(
  formulation = "henderson",
  task = list(),
  representation = list(),
  solve = list(),
  logdet = list(),
  score = list(),
  curvature = list(),
  update = list(),
  proposal = list(),
  convergence = list(),
  output = list(),
  execution = list(),
  diagnostics = list()
)

Value

A sommer_mmes_control object with strictly validated module names.

Arguments

formulation

Equation domain: "henderson" or "direct". PQL supports either domain for its weighted Gaussian working fits; native Laplace requires Henderson.

task

Named list selecting mode, objective, outer pql/glmm controls, and nonlinear controls for nonlinear_curve: optimizer (nlminb), gradient (analytic), initialization (auto/supplied), named natural-scale curve starts, conditional mode controls and population quadrature controls.

representation

Named list of equation, compression and covariance representation requests.

solve

Named list of linear solver, preconditioning, reuse and elimination requests.

logdet

Named list controlling stochastic determinant scaling and Lanczos depth.

score

Named list controlling trace estimation and covariance checks.

curvature

Named list selecting exact/hybrid AI, reduced directions and assembly="sensitivity" (default) or "augmented-working". The latter absorbs all working directions in coefficient space using the existing Henderson factorization, without observation-space random working variates. It requires a Gaussian deterministic Henderson fit without zero-specific latent reduced rank, conditional equations or factor scores.

update

Named list controlling EM/PXEM recovery, blending and common-scale profiling.

proposal

Named list controlling step scaling and Aitken extrapolation.

convergence

Named list of inner iteration, convergence and stochastic accuracy controls.

output

Named list of coefficient/covariance uncertainty and setup output requests. For Henderson fits, inverse=0 skips fit-time PEVs and final inverse work; inverse=1 computes random-effect PEVs without the full inverse; inverse=2 computes PEVs and the full inverse. With mode 0, use postPEV after fitting when coefficientMatrix=TRUE. For direct fits, coefficientMatrix retains prepared covariance inputs rather than Henderson equations; panelSize controls post-fit diagonal covariance panels. Both predict() and postPEV() work in observation space without a stored coefficient inverse.

execution

Named list of memory, hardware, threading and numerical precision policies.

diagnostics

Named list of ordinary verbosity, package-age messages and phase profiling.

Compatibility

Settings are checked against one compatibility table before fitting. A supplied setting that conflicts with another, or that has no effect on the selected path, stops with a message naming the offending module settings. Examples include PCG estimator settings with a deterministic solver, Henderson-only settings with formulation="direct", and estimation modules with task$mode="solve". Rules that depend on the data, family, vcc or rotation are checked by mmes.