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.
computeGradtruncSpatial(
nsims = 100,
scale = 1,
nis,
mu,
rootQeigs,
invrootQeigs,
scaleconst,
spatial,
cellarea
)
The number of simulations to use in computation of gradient truncation.
multiplicative scaling constant, returned value is scale (times) max(gradient over simulations). Default scale is 1.
cell counts on the extended grid
parameter of latent field, mu
root of eigenvalues of precision matrix of latent field
reciprocal root of eigenvalues of precision matrix of latent field
expected number of cases, or ML estimate of this quantity
spatial at risk interpolated onto grid of requisite size
cell area
gradient truncation parameter