Estimates the covariance matrix G for random intercepts that occurs at Step 3 of the FUI method. Applies when `G_generate` cannot provide an analytic solution.
G_estimate(
data,
L,
out_index,
data_cov,
ztlist,
designmat,
betaHat,
HHat,
RE_table,
non_neg = 1,
MoM = 2,
silent = TRUE
)
An estimation of the G matrix
A data frame containing all variables in formula
Number of columns of outcome variables
Indices that contain the outcome variables
(unsure) A matrix of covariance of the data
A list of the design matrices corresponding to random effects
Design matrix of the linear models
Estimated functional fixed effects
(unsure)
(unsure) A data frame containing point estimates of random effects
(unsure)
Controls method of moments estimator
Whether to print the step description during calculations. Defaults to `TRUE`.
A helper function for `fui`.