hhh4ZI

The R package hhh4ZI implements an extension of the endemic-epidemic model from surveillance::hhh4(), adding a zero-inflation component as described in citation("hhh4ZI"):

Lu J, Meyer S (2023). "A zero-inflated endemic-epidemic model with an application to measles time series in Germany." Biometrical Journal, 65(8), 2100408. https://doi.org/10.1002/bimj.202100408

Installation

Example

A demo script of hhh4ZI() modelling of measles in Germany (data("measles")) is available as

system.file("demo", "measles.R", package = "hhh4ZI")

in the installed package. To run the whole script (which takes around 1 hour), you could use:

library("hhh4ZI")
demo(measles, ask = FALSE)