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

View source: R/AggregateSpatialOnlyPlusParameters.R

target.and.grad.AggregateSpatialPlusParsR Documentation

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


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