binary.probit.Bayes {PrevMap} | R Documentation |
Bayesian estimation for the two-levels binary probit model
Description
This function performs Bayesian estimation for a geostatistical binary probit model. It also allows to specify a two-levels model so as to include individual-level and household-level (or any other unit comprising a group of individuals, e.g. village, school, compound, etc...) variables.
Usage
binary.probit.Bayes(
formula,
coords,
data,
ID.coords,
control.prior,
control.mcmc,
kappa,
low.rank = FALSE,
knots = NULL,
messages = TRUE
)
Arguments
formula |
an object of class |
coords |
an object of class |
data |
a data frame containing the variables in the model. |
ID.coords |
vector of ID values for the unique set of spatial coordinates obtained from |
control.prior |
output from |
control.mcmc |
output from |
kappa |
value for the shape parameter of the Matern covariance function. |
low.rank |
logical; if |
knots |
if |
messages |
logical; if |
Details
This function performs Bayesian estimation for the parameters of the geostatistical binary probit model. Let and
denote the indices of the
-th household and
-th individual within that household. The response variable
is a binary indicator taking value 1 if the individual has been tested positive for the disease of interest and 0 otherwise. Conditionally on a zero-mean stationary Gaussian process
,
are mutually independent Bernoulli variables with probit link function
, i.e.
where is a vector of covariates, both at individual- and household-level, with associated regression coefficients
. The Gaussian process
has isotropic Matern covariance function (see
matern
) with variance sigma2
, scale parameter phi
and shape parameter kappa
.
Priors definition. Priors can be defined through the function control.prior
. The hierarchical structure of the priors is the following. Let be the vector of the covariance parameters
c(sigma2,phi)
; each component of has independent priors that can be freely defined by the user. However, in
control.prior
uniform and log-normal priors are also available as default priors for each of the covariance parameters. The vector of regression coefficients beta
has a multivariate Gaussian prior with mean beta.mean
and covariance matrix beta.covar
.
Updating regression coefficents and random effects using auxiliary variables. To update and
, we use an auxiliary variable technique based on Rue and Held (2005). Let
denote a set of random variables that conditionally on
and
, are mutually independent Gaussian with mean
and unit variance. Then,
if
and
otherwise. Using this representation of the model, we use a Gibbs sampler to simulate from the full conditionals of
,
and
. See Section 4.3 of Rue and Held (2005) for more details.
Updating the covariance parameters with a Metropolis-Hastings algorithm. In the MCMC algorithm implemented in binary.probit.Bayes
, the transformed parameters
are independently updated using a Metropolis Hastings algorithm. At the -th iteration, a new value is proposed for each parameter from a univariate Gaussian distrubion with variance
. This is tuned using the following adaptive scheme
where is the acceptance rate at the
-th iteration, 0.45 is the optimal acceptance rate for a univariate Gaussian distribution, whilst
and
are pre-defined constants. The starting values
for each of the parameters
and
can be set using the function
control.mcmc.Bayes
through the arguments h.theta1
, h.theta2
and h.theta3
. To define values for and
, see the documentation of
control.mcmc.Bayes
.
Low-rank approximation.
In the case of very large spatial data-sets, a low-rank approximation of the Gaussian spatial process might be computationally beneficial. Let
and
denote the set of sampling locations and a grid of spatial knots covering the area of interest, respectively. Then
is approximated as
, where
are zero-mean mutually independent Gaussian variables with variance
sigma2
and is the isotropic Matern kernel (see
matern.kernel
). Since the resulting approximation is no longer a stationary process (but only approximately), sigma2
may take very different values from the actual variance of the Gaussian process to approximate. The function adjust.sigma2
can then be used to (approximately) explore the range for sigma2
. For example if the variance of the Gaussian process is 0.5
, then an approximate value for sigma2
is 0.5/const.sigma2
, where const.sigma2
is the value obtained with adjust.sigma2
.
Value
An object of class "Bayes.PrevMap".
The function summary.Bayes.PrevMap
is used to print a summary of the fitted model.
The object is a list with the following components:
estimate
: matrix of the posterior samples of the model parameters.
S
: matrix of the posterior samples for each component of the random effect.
const.sigma2
: vector of the values of the multiplicative factor used to adjust the values of sigma2
in the low-rank approximation.
y
: binary observations.
D
: matrix of covariarates.
coords
: matrix of the observed sampling locations.
kappa
: shape parameter of the Matern function.
ID.coords
: set of ID values defined through the argument ID.coords
.
knots
: matrix of spatial knots used in the low-rank approximation.
h1
: vector of values taken by the tuning parameter h.theta1
at each iteration.
h2
: vector of values taken by the tuning parameter h.theta2
at each iteration.
call
: the matched call.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Peter J. Diggle p.diggle@lancaster.ac.uk
References
Diggle, P.J., Giorgi, E. (2019). Model-based Geostatistics for Global Public Health. CRC/Chapman & Hall.
Giorgi, E., Diggle, P.J. (2017). PrevMap: an R package for prevalence mapping. Journal of Statistical Software. 78(8), 1-29. doi: 10.18637/jss.v078.i08
Rue, H., Held, L. (2005). Gaussian Markov Random Fields: Theory and Applications. Chapman & Hall, London.
Higdon, D. (1998). A process-convolution approach to modeling temperatures in the North Atlantic Ocean. Environmental and Ecological Statistics 5, 173-190.
See Also
control.mcmc.Bayes
, control.prior
,summary.Bayes.PrevMap
, matern
, matern.kernel
, create.ID.coords
.