Learn R Programming

lgcp (version 1.3-8)

GPdrv2: GPdrv2 function

Description

A function to compute the second derivative of the log target with respect to the paramters of the latent field. Not intended for general purpose use.

Usage

GPdrv2(GP, prior, Z, Zt, eta, beta, nis, cellarea, spatial, gradtrunc, fftgrid,
  covfunction, d, eps = 1e-06)

Arguments

GP
an object of class GPrealisation
prior
priors for the model
Z
design matirix on the FFT grid
Zt
transpose of the design matrix
eta
vector of parameters, eta
beta
vector of parameters, beta
nis
cell counts on the extended grid
cellarea
the cell area
spatial
the poisson offset
gradtrunc
gradient truncation parameter
fftgrid
an object of class FFTgrid
covfunction
the choice of covariance function, see ?CovFunction
d
matrix of toral distances
eps
the finite difference step size

Value

  • first and second derivatives of the log target at the specified paramters Y, eta and beta