Evaluate the covariance function for an inla.spde objectPlots the posterior distribution of the range, log(range), variance, or log(variance) parameter of a model's SPDE component. Can also plot Matern correlation or covariance function.
materncov.bands(
manifold,
dist,
log.range,
log.variance = NULL,
alpha = 2,
quantile = 0.95,
n = 64,
S1.L = NULL
)
A list with estimated covariance or correlation (when log.variance
is
NULL
) functions:
An approximate lower bound for the quantile
credible region
The function for for the approximate median parameters quantile
An approximate upper bound for the quantile
credible region
Either "R1", "S1", "R2", or "S2", from
mesh$manifold
, or a full inla.mesh
or
inla.mesh.1d
object.
A vector of distances at which to calculate the covariances/correlations
A scalar or a list (mean, sd), such as produced by
inla.spde.result(...)$summary.log.range.nominal[[1]][c("mean","sd")]
Either NULL
, a scalar, or vector of the
same type as for log.range. When NULL
, the correlations
are calculated instead of the covariances.
The SPDE operator order. Default 2.
The target credible probability. Default 0.95.
The number of parameter combinations to use for the approximation. Default 64.
For manifold
"S1"
, give the length of the
cyclic interval
Finn Lindgren Finn.Lindgren@ed.ac.uk
Uses a Gaussian assumption for the internal model parameters, and finds a region in parameter
space with approximately quantile
probability.