Learn R Programming

lgcp (version 1.8)

MALAlgcpSpatial.PlusPars: MALAlgcpSpatial.PlusPars function

Description

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

Usage

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

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.

Zmat

design matrix 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

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

Value

output from the MCMC run