Description Usage Arguments Details Value Author(s) See Also
This function simulates from the conditional distribution of a Gaussian process given binomial y
.
The Guassian process is also approximated using SPDE.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Laplace.sampling.SPDE(
mu,
sigma2,
phi,
kappa,
y,
units.m,
coords,
mesh,
control.mcmc,
messages = TRUE,
plot.correlogram = TRUE,
poisson.llik
)
|
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 |
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
.
A list with the following components
samples
: a matrix, each row of which corresponds to a sample from the predictive distribution.
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Peter J. Diggle p.diggle@lancaster.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.