Compute part of log-likelihood involving kappa (or kappa_q) for numerical optimization
LL2_kappa(
kappa,
Amat,
Fmat,
Gmat,
GFinvG,
OplusW,
u,
v,
C1 = 1/(4 * pi),
Q = NULL
)
Value of log-likelihood at logkappa
Value of kappa for which to compute log-likelihood
Mesh projection matrix
Matrix used in computation of SPDE precision
Matrix used in computation of SPDE precision
Matrix used in computation of SPDE precision
Sparse matrix containing estimated values of RHS of trace in part 2 of log-likelihood. In common smoothness model, represents the sum over q=1,...,Q.
Vector needed for part 3 of log-likelihood
Vector needed for part 3 of log-likelihood
For the unit variance case, \(\tau^2 = C1/\kappa^2\), where \(C1 = 1/(4\pi)\) when \(\alpha=2\), \(\nu=1\), \(d=2\)
Equal to the number of networks for the common smoothness model, or NULL for the network-specific smoothness model
This is the function to be maximized in order to determine the MLE for \(\kappa\) or the \(\kappa_q\)'s in the M-step of the EM algorithm in spatial model. In the model where \(\kappa_q\) can be different for each network \(q\), the optimization function factorizes over the \(\kappa_q\)'s. This function computes the value of the part of the optimization function pertaining to one of the \(\kappa_q\)'s.