Description Usage Arguments Details Value Author(s)
zero_poisson
is used to fit zero-inflated
poisson regression models to count data via Bayesian inference.
1 2 3 | zero_poisson(y, x, a = 1, b = 1, lam.start = 1, beta.prior.mean = 0,
beta.prior.sd = 1, iters = 1000, burn = 500, nthin = 1, plots = T,
progress.bar = T)
|
y |
numeric response vector. |
x |
numeric predictor matrix. |
a |
shape parameter for gamma prior distributions. |
b |
rate parameter for gamma prior distributions. |
lam.start |
initial value for lambda parameter. |
beta.prior.mean |
mu parameter for normal prior distributions. |
beta.prior.sd |
standard deviation for normal prior distributions. |
iters |
number of iterations for the Markov chain to run. |
burn |
numeric burn-in length. |
nthin |
numeric thinning rate. |
plots |
logical operator. |
progress.bar |
logical operator. |
Fits a zero-inflated Poisson (ZIP) model.
zero_poisson
returns a list which includes the items
numeric vector; posterior distribution of lambda parameter
numeric matrix; posterior distributions of regression coefficients
numeric vector; posterior distribution of parameter 'p', the probability of a given zero observation belonging to the model's zero component
numeric vector; posterior log-likelihood
Taylor Trippe <ttrippe@luc.edu>
Earvin Balderama <ebalderama@luc.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.