Learn R Programming

lgcp (version 1.3-8)

target.and.grad.AggregateSpatialPlusPars: target.and.grad.AggregateSpatialPlusPars function

Description

A function to compute the target and gradient for the Bayesian aggregated point process model. Not for general use.

Usage

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

Arguments

GP
an object constructed using GPrealisation
prior
the prior, created using lgcpPrior
Z
the design matrix on the full FFT grid
Zt
the transpose of the design matrix
eta
the model parameter, eta
beta
the model parameters, beta
nis
cell counts on the FFT grid
cellarea
the cell area
spatial
the poisson offset
gradtrunc
the gradient truncation parameter

Value

  • the target and gradient