inla.spde2.generic {INLA} | R Documentation

## Generic spde2 model creation.

### Description

Creates and inla.spde2 object describing the internal structure of an `'spde2'` model.

### Usage

    inla.spde2.generic(
      M0,
      M1,
      M2,
      B0,
      B1,
      B2,
      theta.mu,
      theta.Q,
      transform = c("logit", "log", "identity"),
      theta.initial = theta.mu,
      fixed = rep(FALSE, length(theta.mu)),
      theta.fixed = theta.initial[fixed],
      BLC = cbind(0, diag(nrow = length(theta.mu))),
      ...
    )

### Arguments

`M0` | The symmetric `M0` matrix.
`M1` | The square `M1` matrix.
`M2` | The symmetric `M2` matrix.
`B0` | Basis definition matrix for `\phi_0`.
`B1` | Basis definition matrix for `\phi_2`.
`B2` | Basis definition matrix for `\phi_2`.
`theta.mu` | Prior expectation for the `\theta` vector
`theta.Q` | Prior precision for the `\theta` vector
`transform` | Transformation link for `\phi_2`. Valid settings are `"logit"`, `"log"`, and `"identity"`
`theta.initial` | Initial value for the `\theta` vector. Default `theta.mu`
`fixed` | Logical vector. For every `TRUE` value, treat the corresponding `theta` value as known.
`theta.fixed` | Vector holding the values of fixed `theta` values. Default `⁠=theta.initial[fixed]⁠`
`BLC` | Basis definition matrix for linear combinations of `theta`.
`...` | Additional parameters, currently unused.
`theta` | parameter values to be mapped.

### Value

For `inla.spde2.generic`, an `inla.spde2()` object.

For `inla.spde2.theta2phi0/1/2`, a vector of `\phi` values.

### Author(s)

Finn Lindgren finn.lindgren@gmail.com

### See Also

`inla.spde2.models()`, `inla.spde2.matern()`

[Package INLA version 26.02.05 Index]