where y_i and x_i are observed. The assumed prior distributions are
alpha ~ N(0,a0),
beta_k ~ N(0,b0), k=1,...,K,
gamma ~ N(0,c0)
delta_k ~ N(0,d0), k=1,...,K,
sigma^2 ~ Inv-Gamma(e0,f0).
The sampling algorithm described in Jochmann (2013) is used.
Value
A list containing the following elements:
alpha
Posterior draws of alpha (coda mcmc object).
beta
Posterior draws of beta (coda mcmc object) .
gamma
Posterior draws of gamma (coda mcmc object).
delta
Posterior draws of delta (coda mcmc object).
sigma2
Posterior draws of sigma^2 (coda mcmc object).
acc
Acceptance rate of the Metropolis-Hastings step.
References
Jochmann, M. (2013). “What Belongs Where? Variable Selection for Zero-Inflated Count Models with an Application to the Demand for
Health Care”, Computational Statistics, 28, 1947–1964.
Examples
## Not run:
data( docvisits )
mdl <- docvisits ~ age + agesq + health + handicap + hdegree + married + schooling +
hhincome + children + self + civil + bluec + employed + public + addon
post <- zic( f, docvisits, 10.0, 10.0, 10.0, 10.0, 1.0, 1.0, 1000, 10000, 10, 1.0, TRUE )
## End(Not run)