Subroutine called by FitComposite. The procedure estimates the model parameters by maximization of the log-likelihood.
Likelihood(corrmodel, data, fixed, flagcor, flagnuis, grid, lower,
model, namescorr, namesnuis, namesparam, numcoord, numpairs,
numparamcor, numrep, numtime, optimizer, param, setup,
spacetime, varest, taper, type, upper)
Numeric; the id of the correlation model.
A numeric vector or a (\(n \times d\))-matrix or (\(d \times d \times n\))-matrix of observations.
A numeric vector of flags denoting which correlation parameters have to be estimated.
A numeric verctor of flags denoting which nuisance parameters have to estimated.
A numeric vector of parameters that will be considered as known values.
Logical; if FALSE
(the default) the data
are interpreted as a vector or a (\(n \times d\))-matrix,
instead if TRUE
then (\(d \times d
\times n\))-matrix is considered.
A numeric vector with the lower bounds of the parameters' ranges.
Numeric; the id value of the density associated to the likelihood objects.
String; the names of the correlation parameters.
String; the names of the nuisance parameters.
String; the names of the parameters to be maximised.
Numeric; the number of coordinates.
Numeric; the number of pairs.
Numeric; the number of the correlation parameters.
Numeric; the number of iid replications.
Numeric; the number of temporal observations.
String; the optimization algorithm
(see optim
for details). 'Nelder-Mead' is the
default.
A numeric vector of parameters.
A List of useful components for the estimation based on the maximum tapered likelihood.
Logical; if the random field is spatial
(FALSE
) or spatio-temporal (TRUE
).
Logical; if TRUE
the estimate' variances and
standard errors are returned.
FALSE
is the default.
String; the name of the taper correlation function.
String; the type of the likelihood objects. If Pairwise
(the
default) then the marginal composite likelihood is formed by
pairwise marginal likelihoods.
A numeric vector with the upper bounds of the parameters' ranges.