Description Usage Arguments Value Examples
View source: R/convoSPAT_paramEst.R
This function generates another function to be used within optim
to
obtain maximum likelihood estimates of
global variance parameters sigmasq and nu. The nugget variance is
taken to be spatially-varying.
1 2 3 4 5 6 7 8 9 | make_global_loglik2_kappa(
data,
Xmat,
cov.model,
Scalemat,
Distmat,
obs.nuggets,
nugg2.var
)
|
data |
A vector or matrix of data to use in the likelihood calculation. |
Xmat |
The design matrix for the mean model. |
cov.model |
String; the covariance model. |
Scalemat |
Matrix; contains the scaling quantities from the covariance function. |
Distmat |
Matrix; contains the scaled distances. |
obs.nuggets |
A vector containing the spatially-varying nuggets corresponding to each data location. |
nugg2.var |
Fixed values for the covariance of the second nugget term. |
This function returns another function for use in optim
.
1 2 3 4 | ## Not run:
make_global_loglik2_kappa( data, Xmat, cov.model, Scalemat, Distmat, obs.nuggets, nugg2.var )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.