setupPrecMatStruct | R Documentation |
A function to set up the computational grid and precision matrix structure for SPDE models.
setupPrecMatStruct(shape, cellwidth, no)
shape |
an object of class SpatialPolygons or SpatialPolygonsDataFrame |
cellwidth |
a scalar, the width of the grid cells |
no |
the order of the SPDE approximation: see Lindgren et al 2011 for details |
the computational grid and a function for constructing the precision matrix
Benjamin M. Taylor and Barry S. Rowlingson (2017). spatsurv: An R Package for Bayesian Inference with Spatial Survival Models. Journal of Statistical Software, 77(4), 1-32, doi:10.18637/jss.v077.i04.
Finn Lindgren, Havard Rue, Johan Lindstrom. An explicit link between Gaussian fields and Gaussian Markov random fields: the stochastic partial differential equation approach. Journal of the Royal Statistical Society: Series B 73(4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.