
Rational approximations of fractional intrinsic fields
Source:R/inla_rspde_intrinsic.R
rspde.intrinsic.Rdrspde.intrinsic computes a Finite Element Method (FEM) approximation of a
Gaussian random field defined as the solution to the stochastic partial
differential equation (SPDE):
$$(-\Delta)^{(\nu+d/2)/2}\tau u = W$$.
Usage
rspde.intrinsic(
mesh,
nu = NULL,
nu.upper.bound = 2,
mean.correction = FALSE,
rspde.order = 1,
prior.tau = NULL,
prior.nu = NULL,
prior.nu.dist = "lognormal",
nu.prec.inc = 0.01,
diagonal = 1e-05,
type.rational.approx = "brasil",
shared_lib = "detect",
debug = FALSE,
cache = TRUE,
scaling = NULL,
opts = NULL,
...
)Arguments
- mesh
Spatial mesh for the FEM approximation.
- nu
If nu is set to a parameter, nu will be kept fixed and will not be estimated. If nu is
NULL, it will be estimated.- nu.upper.bound
Upper bound for the smoothness parameter \(\nu\). If
NULL, it will be set to 2.- mean.correction
Add mean correction for extreme value models?
- rspde.order
The order of the covariance-based rational SPDE approach. The default order is 1.
- prior.tau
A list specifying the prior for the variance parameter \(\tau\). This list may contain two elements:
meanand/orprecision, both of which must be numeric scalars.- prior.nu
a list containing the elements
meanandprecfor beta distribution, orloglocationandlogscalefor a truncated lognormal distribution.loglocationstands for the location parameter of the truncated lognormal distribution in the log scale.precstands for the precision of a beta distribution.logscalestands for the scale of the truncated lognormal distribution on the log scale. Check details below.- prior.nu.dist
The distribution of the smoothness parameter. The current options are "beta" or "lognormal". The default is "lognormal".
- nu.prec.inc
Amount to increase the precision in the beta prior distribution. Check details below.
- diagonal
Number added to diagonal of Q for increased stability.
- type.rational.approx
Which type of rational approximation should be used? The current types are "brasil", "chebfun" or "chebfunLB".
String specifying which shared library to use for the Cgeneric implementation. Options are "detect", "INLA", or "rSPDE". You may also specify the direct path to a .so (or .dll) file.
- debug
Logical value indicating whether to enable INLA debug mode.
- cache
Use caching internally in the estimation?
- scaling
A positive numeric value of length 1 for scaling the model. If NULL (default), it will be computed using RSpectra::eigs. Must be positive if provided.
- opts
A list of options passed to RSpectra::eigs function. See RSpectra documentation for available options.
- ...
Additional arguments passed internally for configuration purposes.