Special case of estimating covariance of random components G(s1, s2)
Estimates the covariance matrix G for random intercepts that occurs at Step 3 of the FUI method. A helper function for fui
.
G_estimate_randint(data, L, out_index, designmat, betaHat, silent = TRUE)
data
: A data frame containing all variables in formulaL
: Number of columns of outcome variablesout_index
: Indices that contain the outcome variablesdesignmat
: Design matrix of the linear modelsbetaHat
: Estimated functional fixed effectssilent
: Whether to print the step description during calculations. Defaults to TRUE
.An estimation of the G matrix