Learn R Programming

lgcp (version 1.3-8)

getpolyol: getpolyol function

Description

A function to perform polygon/polygon overlay operations and form the computational grid, on which inference will eventually take place. For details and examples of using this fucntion, please see the package vignette "Bayesian_lgcp"

Usage

getpolyol(data, regionalcovariates = NULL, pixelcovariates = NULL,
  cellwidth, ext = 2, inclusion = "touching")

Arguments

data
an object of class ppp or SpatialPolygonsDataFrame, containing the event counts, i.e. the dataset that will eventually be analysed
regionalcovariates
an object of class SpatialPolygonsDataFrame containng regionally measured covariate information
pixelcovariates
X an object of class SpatialPixelsDataFrame containng regionally measured covariate information
cellwidth
the chosen cell width
ext
the amount by which to extend the observation window in forming the FFT grid, default is 2. In the case that the point pattern has long range spatial correlation, this may need to be increased.
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.

Value

  • an object of class lgcppolyol, which can then be fed into the function getZmat.

See Also

minimum.contrast, minimum.contrast.spatiotemporal, chooseCellwidth, guessinterp, getZmat, addTemporalCovariates, lgcpPrior, lgcpInits, CovFunction lgcpPredictSpatialPlusPars, lgcpPredictAggregateSpatialPlusPars, lgcpPredictSpatioTemporalPlusPars, lgcpPredictMultitypeSpatialPlusPars