Usage
lgcpPredictMultitypeSpatialPlusPars(formulaList, sd, typemark = NULL,
Zmat = NULL, model.priorsList, model.initsList = NULL,
spatial.covmodelList, cellwidth = NULL, poisson.offset = NULL,
mcmc.control, output.control = setoutput(), gradtrunc = Inf, ext = 2,
inclusion = "touching")
Arguments
formulaList
an object of class formulaList, see ?formulaList. A list of formulae of the form t1 ~ var1 + var2 etc. The name of the dependent variable must correspond to the name of the point type. Only accepts 'simple' formulae, such as the example given.
sd
a marked ppp object, the mark of interest must be able to be coerced to a factor variable
typemark
if there are multiple marks, thrun the MCMC algorithm for spatial point process data. Not for general purpose use.is sets the name of the mark by which
Zmat
design matrix including all covariate effects from each point type, constructed with getZmat
model.priorsList
model priors, a list object of length the number of types, each element set using lgcpPrior
model.initsList
list of model initial values (of length the number of types). 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.covmodelList
list of spatial covariance functions (of length the number of types). See ?CovFunction
cellwidth
the width of computational cells
poisson.offset
A list of SpatialAtRisk objects (of length the number of types) defining lambda_k (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.
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.