logit.zellner.prior {BoomSpikeSlab} | R Documentation |
Zellner Prior for Logistic Regression
Description
A Zellner-style spike and slab prior for logistic regression models. See 'Details' for a definition.
Usage
LogitZellnerPrior(
predictors,
successes = NULL,
trials = NULL,
prior.success.probability = NULL,
expected.model.size = 1,
prior.information.weight = .01,
diagonal.shrinkage = .5,
optional.coefficient.estimate = NULL,
max.flips = -1,
prior.inclusion.probabilities = NULL)
Arguments
predictors |
The design matrix for the regression problem. No missing data is allowed. |
successes |
The vector of responses, which can be 0/1,
|
trials |
A vector of the same length as successes, giving the
number of trials for each success count (trials cannot be less than
successes). If successes is binary (or |
prior.success.probability |
The overal prior guess at the
proportion of successes. This is used in two places. It is an
input into the intercept term of the default
|
expected.model.size |
A positive number less than |
prior.information.weight |
A positive scalar. Number of observations worth of weight that should be given to the prior estimate of beta. |
diagonal.shrinkage |
The conditionally Gaussian prior for beta (the "slab") starts with a
precision matrix equal to the information in a single observation.
However, this matrix might not be full rank. The matrix can be made
full rank by averaging with its diagonal. |
optional.coefficient.estimate |
If desired, an estimate of the regression coefficients can be supplied. In most cases this will be a difficult parameter to specify. If omitted then a prior mean of zero will be used for all coordinates except the intercept, which will be set to mean(y). |
max.flips |
The maximum number of variable inclusion indicators the sampler will attempt to sample each iteration. If negative then all indicators will be sampled. |
prior.inclusion.probabilities |
A vector giving the prior
probability of inclusion for each variable. If |
Details
A Zellner-style spike and slab prior for logistic regression.
Denote the vector of coefficients by , and the vector
of inclusion indicators by
. These are linked by the
relationship
if
and
if
. The prior is
where is the vector of
prior.inclusion.probabilities
, and is the
optional.coefficient.estimate
. Conditional on
, the prior information matrix is
The matrix is, for suitable choice of the weight vector
, the total Fisher information available in the data.
Dividing by
gives the average Fisher information in a single
observation, multiplying by
then results in
units of "average" information. This matrix is
averaged with its diagonal to ensure positive definiteness.
In the formula above, is
prior.information.weight
, is
diagonal.shrinkage
, and is a diagonal matrix with all
elements set to
prior.success.probability * (1 -
prior.success.probability)
. The vector and the matrix
are both implicitly subscripted by
,
meaning that elements, rows, or columsn corresponding to gamma = 0
should be omitted.
Value
Returns an object of class LogitZellnerPrior
, which is a list
with data elements encoding the selected prior values. It inherits
from LogitPrior
, which implies that it contains an element
prior.success.probability
.
This object is intended for use with logit.spike
.
Author(s)
Steven L. Scott
References
Hugh Chipman, Edward I. George, Robert E. McCulloch, M. Clyde, Dean P. Foster, Robert A. Stine (2001), "The Practical Implementation of Bayesian Model Selection" Lecture Notes-Monograph Series, Vol. 38, pp. 65-134. Institute of Mathematical Statistics.