This function evaluates the log-likelihood of observed and synthetic data, using residual and random-effect variance terms to determine the fit of variance parameters in the mixed model context.
update_lmm_variance(
residual_variance,
random_effect_variance,
obs_z_eigenvalues,
syn_z_eigenvalues,
obs_adjusted_residuals,
syn_adjusted_residuals,
tau
)
The sum of observed and synthetic log-likelihoods.
Numeric, the variance associated with the residual errors.
Numeric, the variance associated with random effects.
Vector, eigenvalues of the observed Z matrix of data.
Vector, eigenvalues of the synthetic Z matrix of data.
Vector, adjusted residuals of observed data.
Vector, adjusted residuals of synthetic data.
Numeric, weight factor for the synthetic data.