Description Usage Arguments Details Value Author(s) See Also
Fit a generalized covariance model to simulation data
1 2 3 |
qldata |
object of class |
set.var |
logical vector of length one or equal to the number of covariance models;
for values |
var.type |
name of variance matrix approximation type (see |
var.opts |
list of arguments passed to |
intrinsic |
logical vector, |
... |
arguments passed to |
controls |
list of control parameters passed to |
cl |
cluster object, |
verbose |
if |
The function contructs and estimates the parameters of the covariance models by the REML estimatino method for both kriging
the sample means of the statistics and kriging the variance matrix of statistics unless 'var.type
'
equals "const
" for the latter. The default covariance model is derived from a (self-similar) intrinsic random function, that is,
the 'sirfk
' function of order k (see, e.g. [1]) with k=1,2, for all statistics (including a default quadratic drift term
k=2). The user can also define different covariance models for each statistic separately (see below). Other covariance models can be set
by their name in the argument 'model
' which is passed to the function setCovModel
. Currently, kriging the variance matrix
is done by the 'sirfk
' model.
The argument 'var.opts
' only sets the options for the covariance models for kriging the variance matrix if this is the users prefered
type of approximation. Further optional arguments, e.g., 'var.sim
' used only for the approximatino of the statistics,
'var.opts$var.sim
' for kriging the variance matrix, specify the local vector of nugget values for each sample point depending on
whether or not 'set.var
' (which is only used for kriging the statistics) equals TRUE
. Both arguments are passed to
setCovModel
and must be data frames of lengths (number of columns) corresponding to the number of covariance
models of the statistics and, respectively, to the number of Cholesky decomposed terms in case of kriging the variance matrix.
If 'set.var=TRUE
' (default), then local nugget variances are estimated by the variance of the sample average of the simulated values of the statistics.
Otherwise the values given in 'var.sim
' are used as fixed 'nugget' variances and replicated to match the number of sample points.
The same applies in case of kriging the variance matrix. If 'intrinsic=TRUE
', then local nugget variances
for each of the variance-covariances of the statistics are estimated by a bootstrapping procedure. Otherwise the values given by
'var.opts$var.sim
' (of length one or equal to the number of corresponding sample points) are used directly as local estimates
(which then must exactly match the order of the Cholesky decomposed terms). A global nugget value can be estimated during the REML
estimation which is the default option for both cases unless this parameter is excluded from the covariance parameter estimation
(see setCovModel
).
The default optimization algorithm for estimating the covariance parameters is mlsl
followed by a final local search using
NLOPT_LN_COBYLA
. Note that in this case the estimated parameters may vary when starting the REML procedure several times since starting
points are randomly chosen for mlsl
. All options for optimization can be modified by the argument 'controls
'.
Note that the returned object can also be constructed manually and passed as an input argument to
QLmodel
in case the user prefers to set up each covariance model separately. In this case, first use
setCovModel
to construct the covariance model, then estimate the parameters by fitCov
and pass a list of
fitted covariance models to function QLmodel
. The resulting object is the same as obtained by this function. Please see
the function QLmodel
for an example.
A list of fitted covariance models for kriging the sample means of statistics named 'covT
' and optionally
the variance matrix of statistics, 'covL
'. The object also stores the reml optimization parameters 'controls
'.
M. Baaske
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.