This function allows you to evaluate the negative log-likelihood of a linear mixed model under the assumption of a null model in order to estimate the variance parameter, eta.
log_lik(eta, n, s, U, y, incpt_flag)the value of the log-likelihood of the PLMM, evaluated with the supplied parameters
Estimated proportion of the variance in the outcome attributable to population/correlation structure
The number of observations
The non-zero eigenvalues of K, the realized relationship matrix
The eigenvectors of K associated with s
Continuous outcome vector
Logical: Does the model require fitting an intercept? Passed from estimate_eta.