makeprec {spam} | R Documentation |
Creates precision matrices for gridded GMRF.
precmat.GMRFreglat(n,m, par, model = "m1p1", eps = .Spam$eps)
n |
first dimension of the grid. |
m |
second dimension of the grid. |
par |
parameters used to construct the matrix. |
model |
see details and examples. |
eps |
A tolerance parameter: elements of |
The function should be illustrative on how to create precision matrices for gridded GMRF. Hence, no testing (positive definiteness is done). Please see the examples on the meaning of the different models.
A spam
matrix of dimension prod(dims)
xprod(dims)
.
Reinhard Furrer
precmat
, toeplitz.spam
, kronecker.spam
as.matrix(precmat.GMRFreglat(4, 3, c(.4), 'm1p1')) as.matrix(precmat.GMRFreglat(4, 3, c(.4,.3), 'm1p2')) as.matrix(precmat.GMRFreglat(4, 3, c(.4,.3,.2), 'm2p3')) as.matrix(precmat.GMRFreglat(4, 3, c(.4,.3,.2,.1),'m2p4'))