Computes the Bayesian posterior summary intervals, sometimes called 'credible intervals' for the estimated immunisation coverage term ('mu').

ic_coverage(
  X,
  object = "posterior",
  stat = c("mean", "median", "sd", "quantile"),
  probs = c(0.025, 0.25, 0.5, 0.75, 0.975)
)

# S3 method for icfit
ic_coverage(
  X,
  object = "posterior",
  stat = c("mean", "median", "sd", "quantile"),
  probs = c(0.025, 0.25, 0.5, 0.75, 0.975)
)

# S3 method for iclist
ic_coverage(
  X,
  object = "posterior",
  stat = c("mean", "median", "sd", "quantile"),
  probs = c(0.025, 0.25, 0.5, 0.75, 0.975)
)

Arguments

X

A fitted model object of type icfit or iclist.

object

Character specifying the name of the object to summarise. Default is 'posterior'.

stat

Character vector of summary statistics to apply.

probs

Numeric vector of probabilities with values in 0,1 to be used for stat "quantile".

Value

A data.frame with columns for 'country', 'time', and 'vaccine' labels and summary statistics, and as many rows as there are 'mu' observations of immunisation coverage.