| inla.group.cv {INLA} | R Documentation |
Compute group.cv-values
Description
From a fitted model, compute and add the group.cv-values
Usage
inla.group.cv(
result,
group.cv = NULL,
num.level.sets = -1,
strategy = c("posterior", "prior"),
size.max = 32,
groups = NULL,
selection = NULL,
group.selection = NULL,
friends = NULL,
weights = NULL,
verbose = FALSE,
epsilon = 0.005,
prior.diagonal = 1e-04,
keep = NULL,
remove = NULL,
remove.fixed = TRUE,
type.cv = "single"
)
Arguments
result |
An object of class |
group.cv |
If given, the groups are taken from this argument.
|
num.level.sets |
Number of level.sets to use. The default value
|
strategy |
One of |
size.max |
The maximum size (measure in the number of nodes) of a group. If the computed
group-size is larger, it will be truncated to |
groups |
An (optional) predefined list of groups. See the vignette for details. |
selection |
An optional list of data-indices to use. If not given, then all data are used. |
group.selection |
An optional list of data-indices to use when building the
groups. If given, each group beyond the observation itself, must be a subset of
|
friends |
An optional list of lists of indices to use a friends |
weights |
An optional positive weight attached to each datapoint. The sum
of the weights define the size of the group. If |
verbose |
Run with |
epsilon |
Two correlations with a difference less than |
prior.diagonal |
When |
keep |
For |
remove |
For |
remove.fixed |
For |
type.cv |
Type of cv, either "single" (default) or "joint" |
Value
The object returned is list related to leave-group-out cross-validation. See the vignette for details.
Author(s)
Havard Rue hrue@r-inla.org