Evaluate the log-likelihood for a given set of parameters
singl_ll_nn_hess(
theta,
.dt,
dists,
npix,
model,
nu = NULL,
kappa = 1,
mu2 = 1.5,
apply_exp = FALSE
)a scalar representing -log.lik.
a numeric vector of size \(3\) containing the
parameters values associated with \(\mu\), \(\sigma^2\), and
\(\phi\), respectively.
a numeric vector containing the variable \(Y\).
a list of size three. The first containing the distance
matrices associated with the regions where \(Y\) was measured, the
second for the distance matrices associated with \(X\), and the last
containing the cross-distance matrices.
a integer vector containing the number of pixels within
each polygon. (Ordered by the id variables for the polygons).
a character indicating which covariance function to
use. Possible values are c("matern", "pexp", "gaussian",
"spherical").
\(\nu\) parameter. Not necessary if mode is
"gaussian" or "spherical"
\(\kappa \in \{0, \ldots, 3 \}\) parameter for the GW cov function.
the smoothness parameter \(\mu\) for the GW function.
a logical indicating whether the exponential
transformation should be applied to variance parameters. This
facilitates the optimization process.
Internal use.