Learn R Programming

lgcp (version 1.3-8)

MALAlgcpSpatioTemporal.PlusPars: MALAlgcpSpatioTemporal.PlusPars function

Description

A function to run the MCMC algorithm for spatiotemporal point process data. Not for general purpose use.

Usage

MALAlgcpSpatioTemporal.PlusPars(mcmcloop, inits, adaptivescheme, M, N, Mext,
  Next, mcens, ncens, formula, ZmatList, model.priors, model.inits, fftgrid,
  spatial.covmodel, nis, tdiff, cellarea, spatialvals, cellInside, MCMCdiag,
  gradtrunc, gridfun, gridav, d, aggtimes, spatialOnlyCovariates)

Arguments

mcmcloop
details of the mcmc loop
inits
initial values
adaptivescheme
the adaptive MCMC scheme
M
number of grid cells in x direction
N
number of grid cells in y direction
Mext
number of extended grid cells in x direction
Next
number of extended grid cells in y direction
mcens
centroids in x direction
ncens
centroids in y direction
formula
a formula object of the form X ~ var1 + var2 etc.
ZmatList
list of design matrices constructed using getZmat
model.priors
model priors, constructed using lgcpPrior
model.inits
initial values for the MCMC
fftgrid
an objects of class FFTgrid, see genFFTgrid
spatial.covmodel
spatial covariance model, consructed with CovFunction
nis
cell counts on the etended grid
tdiff
vector of time differences
cellarea
the cell area
spatialvals
inerpolated poisson offset on fft grid
cellInside
0-1 matrix indicating inclusion in the observation window
MCMCdiag
not used
gradtrunc
gradient truncation parameter
gridfun
used to specify other actions to be taken, e.g. dumping MCMC output to disk.
gridav
used for computing Monte Carlo expectations online
d
matrix of toral distances
aggtimes
the aggregate times
spatialOnlyCovariates
whether this is a 'spatial' only problem

Value

  • output from the MCMC run