| plot_zero_inflation | R Documentation |
Bar chart of the posterior probability that each observed zero is a
structural zero (see structural_zero_prob()), one bar per observed zero
labelled by its time index, with a dotted reference line at 0.5. Requires
a model fitted with zeros = "inflated" (Poisson or binomial family).
plot_zero_inflation(object, ...)
object |
A |
... |
Passed to |
Invisibly, the structural_zero_prob() data frame.
sim <- simulate_dynamic_poisson(80, 0.2, 2, zero_inflation = 0.3, seed = 1)
fit <- fit_dynamic_model(sim$y, zero_inflation = TRUE, nsave = 300, nburn = 200,
seed = 1)
plot_zero_inflation(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.