Learn R Programming

lgcp (version 1.8)

MALAlgcp: MALAlgcp function

Description

ADVANCED USE ONLY A function to perform MALA for the spatial only case

Usage

MALAlgcp(
  mcmcloop,
  inits,
  adaptivescheme,
  M,
  N,
  Mext,
  Next,
  sigma,
  phi,
  theta,
  mu,
  nis,
  cellarea,
  spatialvals,
  temporal.fitted,
  tdiff,
  scaleconst,
  rootQeigs,
  invrootQeigs,
  cellInside,
  MCMCdiag,
  gradtrunc,
  gridfun,
  gridav,
  mcens,
  ncens,
  aggtimes
)

Arguments

mcmcloop

an mcmcLoop object

inits

initial values from mcmc.control

adaptivescheme

adaptive scheme from mcmc.control

M

number of cells in x direction on output grid

N

number of cells in y direction on output grid

Mext

number of cells in x direction on extended output grid

Next

number of cells in y direction on extended output grid

sigma

spatial covariance parameter sigma

phi

spatial covariance parameter phi

theta

temporal correlation parameter theta

mu

spatial covariance parameter mu

nis

cell counts matrix

cellarea

area of cells

spatialvals

spatial at risk, function lambda, interpolated onto the requisite grid

temporal.fitted

temporal fitted values representing mu(t)

tdiff

vecto of time differences with convention that the first element is Inf

scaleconst

expected number of observations

rootQeigs

square root of eigenvalues of precision matrix

invrootQeigs

inverse square root of eigenvalues of precision matrix

cellInside

logical matrix dictating whether cells are inside the observation window

MCMCdiag

defunct

gradtrunc

gradient truncation parameter

gridfun

grid functions

gridav

grid average functions

mcens

x-coordinates of cell centroids

ncens

y-coordinates of cell centroids

aggtimes

z-coordinates of cell centroids (ie time)

Value

object passed back to lgcpPredictSpatial