Extract field and parameter values and distributions for a metric graph spde effect from an 'INLA' result object.
spde_metric_graph_result(
inla,
name,
metric_graph_spde,
compute.summary = TRUE,
n_samples = 5000,
n_density = 1024
)
If the model was fitted with matern
parameterization (the default),
it returns a list containing:
Marginal densities for the range parameter.
Marginal densities for log(range).
Marginal densities for std. deviation.
Marginal densities for log(std. deviation).
Marginal densities for the field values.
Summary statistics for log(range).
Summary statistics for log(std. deviation).
Summary statistics for the field values.
If compute.summary
is TRUE
, then the list will also contain
Summary statistics for kappa.
Summary statistics for tau.
If the model was fitted with the spde
parameterization, it returns a list containing:
Marginal densities for kappa.
Marginal densities for log(kappa).
Marginal densities for log(tau).
Marginal densities for tau.
Marginal densities for the field values.
Summary statistics for log(kappa).
Summary statistics for log(tau).
Summary statistics for the field values.
If compute.summary
is TRUE
, then the list will also contain
Summary statistics for kappa.
Summary statistics for tau.
An 'INLA' object obtained from a call to inla()
.
A character string with the name of the 'rSPDE' effect in the model.
The inla_metric_graph_spde
object used for the
random effect in the model.
Should the summary be computed?
The number of samples to be used if parameterization is matern
.
The number of equally spaced points to estimate the density.