The zigam R package implements zero-inflated Poisson and Negative Binomial Generalized Additive Models from the mgcv package using the EM Algorithm.
You can install the development version of zigam from GitHub with:
# install.packages("remotes") ## if not already installed
remotes::install_github("AustralianAntarcticDivision/zigam")
A vignette (worked example) is available as part of the package documentation or can be view (after installation) using the code below:
browseVignettes("zigam")