Laplace.sampling.SPDE {PrevMap} | R Documentation |
Independence sampler for conditional simulation of a Gaussian process using SPDE
Description
This function simulates from the conditional distribution of a Gaussian process given binomial y
.
The Guassian process is also approximated using SPDE.
Usage
Laplace.sampling.SPDE(
mu,
sigma2,
phi,
kappa,
y,
units.m,
coords,
mesh,
control.mcmc,
messages = TRUE,
plot.correlogram = TRUE,
poisson.llik
)
Arguments
mu |
mean vector of the Gaussian process to approximate. |
sigma2 |
variance of the Gaussian process to approximate. |
phi |
scale parameter of the Matern function for the Gaussian process to approximate. |
kappa |
smothness parameter of the Matern function for the Gaussian process to approximate. |
y |
vector of binomial observations. |
units.m |
vector of binomial denominators. |
coords |
matrix of two columns corresponding to the spatial coordinates. |
mesh |
mesh object set through |
control.mcmc |
control parameters of the Independence sampler set through |
messages |
logical; if |
plot.correlogram |
logical; if |
poisson.llik |
logical: if |
Details
Binomial model. Conditionally on the random effect S
, the data y
follow a binomial distribution with probability p
and binomial denominators units.m
. The logistic link function is used for the linear predictor, which assumes the form
\log(p/(1-p))=S.
The random effect S
has a multivariate Gaussian distribution with mean mu
and covariance matrix Sigma
.
Value
A list with the following components
samples
: a matrix, each row of which corresponds to a sample from the predictive distribution.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Peter J. Diggle p.diggle@lancaster.ac.uk