Perform the EM algorithm of the Bayesian GLM fitting
.findTheta(theta, spde, y, X, QK, Psi, A, Ns, tol, verbose = FALSE)
the vector of initial values for theta
a list containing the sparse matrix elements Cmat, Gmat, and GtCinvG
the vector of response values
the sparse matrix of the data values
a sparse matrix of the prior precision found using the initial values of the hyperparameters
a sparse matrix representation of the basis function mapping the data locations to the mesh vertices
a precomputed matrix crossprod(X%*%Psi)
the number of columns for the random matrix used in the Hutchinson estimator
a value for the tolerance used for a stopping rule (compared to
the squared norm of the differences between theta(s)
and theta(s-1)
)
(logical) Should intermediate output be displayed?