Learn R Programming

lgcp (version 1.8)

computeGradtruncSpatial: computeGradtruncSpatial function

Description

Advanced use only. A function to compute a gradient truncation parameter for 'spatial only' MALA via simulation. The function requires an FFT 'grid' to be pre-computed, see fftgrid.

Usage

computeGradtruncSpatial(
  nsims = 100,
  scale = 1,
  nis,
  mu,
  rootQeigs,
  invrootQeigs,
  scaleconst,
  spatial,
  cellarea
)

Arguments

nsims

The number of simulations to use in computation of gradient truncation.

scale

multiplicative scaling constant, returned value is scale (times) max(gradient over simulations). Default scale is 1.

nis

cell counts on the extended grid

mu

parameter of latent field, mu

rootQeigs

root of eigenvalues of precision matrix of latent field

invrootQeigs

reciprocal root of eigenvalues of precision matrix of latent field

scaleconst

expected number of cases, or ML estimate of this quantity

spatial

spatial at risk interpolated onto grid of requisite size

cellarea

cell area

Value

gradient truncation parameter

See Also

fftgrid