Internal helper to standardize creation of the fitted-model object returned
by glmmFEL() and related engines.
This branch stores only a single variance component tau2 with
\(G = \tau^2 I_q\). More structured covariance parameterizations and the
formula wrapper are intentionally removed to reduce complexity.
glmmfe_new_fit(
y,
X,
Z,
beta,
eta,
tau2,
G = NULL,
vcov_beta = NULL,
vcov_eta = NULL,
cov_beta_eta = NULL,
var_eta = NULL,
family,
approx,
control,
convergence,
logLik = NA_real_,
call = NULL,
reml = NULL
)A list of class c("glmmFELMod", "glmmFEL").
Numeric response vector of length n.
Fixed-effects design matrix n x p.
Random-effects design matrix n x q (stored as sparse dgCMatrix).
Fixed-effect estimates (length p).
Random-effect predictions (length q).
Non-negative scalar variance component.
Optional q x q covariance matrix (defaults to tau2 * I_q).
Optional p x p covariance matrix for beta.
Optional q x q covariance matrix for eta.
Optional p x q cross-covariance block.
Optional alias for prediction-error covariance of eta.
Canonical family label.
Canonical approximation label.
List of control settings used.
List containing convergence information.
Approximate log-likelihood/objective (may be NA).
Captured match.call().
Logical flag (used by RSPL/MSPL only; may be NULL otherwise).