The function constructs a list of covariance models of statistics in order to estimate the prediction error variances by a cross-validation approach at unsampled points.
prefitCV(qsd, reduce = TRUE, type = c("cv", "max"), control = list(),
cl = NULL, verbose = FALSE)
object of class QLmodel
if TRUE
(default), reduce the number of covariance models to refit
type of prediction variances, "cv
" (default) and "max
", see crossValTx
control arguments for REML estimation, passed to nloptr
cluster object, NULL
(default), of class MPIcluster
, SOCKcluster
, cluster
if TRUE
, print intermediate output
A list of certain length depending on the current sample size (number of evaluated points).
Each list element corresponds to a (possibly reduced) number of sample points with at most
Using the cross-validation approach (see vignette) for estimating the prediction variances
might require a refit of covariance parameters of each statistic based on the remaining sample points.
The covariance models are refitted if `fit
` equals TRUE
and otherwise simply updated without fitting which
saves some computational resources. The number of points left-out, if applicable, is dynamically adjusted depending on the number
of sample points in order to prevent the main estimation algorithm to fit as many models as there are points already evaluated.
The number
# NOT RUN {
data(normal)
# without re-estimation of covariance parameters, default is TRUE
qsd$cv.fit <- FALSE
cvm <- prefitCV(qsd)
# }
Run the code above in your browser using DataLab