target.and.grad.spatialPlusPars: target.and.grad.spatialPlusPars function

View source: R/SpatialOnlyPlusParameters.R

target.and.grad.spatialPlusParsR Documentation

target.and.grad.spatialPlusPars function

Description

A function to compute the target and gradient for the Bayesian spatial LGCP

Usage

target.and.grad.spatialPlusPars(
  GP,
  prior,
  Z,
  Zt,
  eta,
  beta,
  nis,
  cellarea,
  spatial,
  gradtrunc
)

Arguments

GP

an object created using GPrealisation

prior

the model priors, created using lgcpPrior

Z

the design matrix on the FFT grid

Zt

transpose of the design matrix

eta

the paramters, eta

beta

the parameters, beta

nis

cell counts on the FFT grid

cellarea

the cell area

spatial

poisson offset

gradtrunc

the gradient truncation parameter

Value

the target and graient for this model


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.