getgrd: getgrd function

View source: R/GMRF.R

getgrdR Documentation

getgrd function

Description

A function to create a regular grid over an observation window in order to model the spatial randome effects as a Gaussian Markov random field.

Usage

getgrd(shape, cellwidth)

Arguments

shape

an object of class SpatialPolygons or SpatialPolygonsDataFrame

cellwidth

a scalar, the width of the grid cells

Value

a SpatialPolygons object: the grid on which prediction of the spatial effects will occur

References

  1. 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.

  2. 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)


spatsurv documentation built on Oct. 19, 2023, 9:07 a.m.