Usage
getZmat(formula, data, regionalcovariates = NULL, pixelcovariates = NULL,
cellwidth, ext = 2, inclusion = "touching", overl = NULL)
Arguments
formula
a formula object of the form X ~ var1 + var2 etc. The name of the dependent variable must be "X". Only accepts 'simple' formulae, such as the example given.
data
the data to be analysed (using, for example lgcpPredictSpatialPlusPars). Either an object of class ppp, or an object of class SpatialPolygonsDataFrame
regionalcovariates
an optional SpatialPolygonsDataFrame object containing covariate information, if applicable
pixelcovariates
an optional SpatialPixelsDataFrame object containing covariate information, if applicable
cellwidth
the width of computational cells
ext
integer multiple by which grid should be extended, default is 2. Generally this will not need to be altered, but if the spatial correlation decays slowly, increasing 'ext' may be necessary.
inclusion
criterion for cells being included into observation window. Either 'touching' or 'centroid'. The former, the default, includes all cells that touch the observation window, the latter includes all cells whose centroids are inside the observation window.
overl
an object of class "lgcppolyol", created by the function getpolyol. Such an object contains the FFT grid and a polygon/polygon overlay and speeds up computation massively.