Usage
lgcpPredictAggregateSpatialPlusPars(formula, spdf, Zmat = NULL,
overlayInZmat = FALSE, model.priors, model.inits = lgcpInits(),
spatial.covmodel, cellwidth = NULL, poisson.offset = NULL, mcmc.control,
output.control = setoutput(), gradtrunc = Inf, ext = 2, Nfreq = 101,
inclusion = "touching")
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.
spdf
a SpatialPolygonsDataFrame object with
variable "X", the event counts per region.
Zmat
design matrix Z (see below) constructed with
getZmat
overlayInZmat
if the covariate information in Zmat
also comes from spdf, set to TRUE to avoid replicating
the overlay operations. Default is FALSE.
model.priors
model priors, set using lgcpPrior
model.inits
model initial values. The default is
NULL, in which case lgcp will use the prior mean to
initialise eta and beta will be initialised from an
oversispersed glm fit to the data. Otherwise use
lgcpInits to specify.
spatial.covmodel
choice of spatial covariance
function. See ?CovFunction
cellwidth
the width of computational cells
poisson.offset
A SpatialAtRisk object defining
lambda (see below)
mcmc.control
MCMC paramters, see ?mcmcpars
output.control
output choice, see ?setoutput
gradtrunc
truncation for gradient vector equal to
H parameter Moller et al 1998 pp 473. Default is Inf,
which means no gradient truncation, which seems to work
in most settings.
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.
Nfreq
the sampling frequency for the cell counts.
Default is every 101 iterations.
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 wi