inla.spde.make.A {INLA} | R Documentation |
Constructs observation/prediction weight matrices for models based on
inla.mesh()
and inla.mesh.1d()
objects.
inla.spde.make.A( mesh = NULL, loc = NULL, index = NULL, group = NULL, repl = 1L, n.spde = NULL, n.group = NULL, n.repl = NULL, group.mesh = NULL, weights = NULL, A.loc = NULL, A.group = NULL, group.index = NULL, block = NULL, n.block = NULL, block.rescale = c("none", "count", "weights", "sum"), ... )
mesh |
An |
loc |
Observation/prediction coordinates. |
index |
For each observation/prediction value, an index into
|
group |
For each observation/prediction value, an index into the group model. |
repl |
For each observation/prediction value, the replicate index. |
n.spde |
The number of basis functions in the mesh model. (Note: may be different than the number of mesh vertices/nodes/knots.) |
n.group |
The size of the group model. |
n.repl |
The total number of replicates. |
group.mesh |
An optional |
weights |
Optional scaling weights to be applied row-wise to the resulting matrix. |
A.loc |
Optional precomputed observation/prediction matrix.
|
A.group |
Optional precomputed observation/prediction matrix for the
group model. |
group.index |
For each observation/prediction value, an index into the
rows of |
block |
Optional indices specifying block groupings: Entries with the
same |
n.block |
The number of blocks. |
block.rescale |
Specifies what scaling method should be used when
joining entries as grouped by a |
... |
Additional parameters. Currently unused. |
Finn Lindgren finn.lindgren@gmail.com
loc <- matrix(runif(10000 * 2) * 1000, 10000, 2) mesh <- inla.mesh.2d( loc = loc, cutoff = 50, max.edge = c(50, 500) ) A <- inla.spde.make.A(mesh, loc = loc)