Learn R Programming

Overview

Zero-Inflated Models (ZIM) for Count Time Series with Excess Zeros

Analyze count time series with excess zeros. Two types of statistical models are supported: Markov regression by Yang et al. (2013) and state-space models by Yang et al. (2015). They are also known as observation-driven and parameter-driven models respectively in the time series literature. The functions used for Markov regression or observation-driven models can also be used to fit ordinary regression models with independent data under the zero-inflated Poisson (ZIP) or zero-inflated negative binomial (ZINB) assumption. Besides, the package contains some miscellaneous functions to compute density, distribution, quantile, and generate random numbers from ZIP and ZINB distributions.

Installation

# Install stable version from CRAN
install.packages("ZIM")

# Install development version from GitHub
devtools::install_github("biostatstudio/ZIM")

# Load package into R
library(ZIM)

References

  • Yang, M., Zamba, G. K. D. and Cavanaugh, J. E. (2013). Markov Regression Models for Count Time Series with Excess Zeros: A Partial Likelihood Approach. Statistical Methodology, 14, 26-38.

  • Yang, M., Cavanaugh, J. E. and Zamba, G. K. D. (2015). State-Space Models for Count Time Series with Excess Zeros. Statistical Modelling, 15, 70-90.

Copy Link

Version

Install

install.packages('ZIM')

Monthly Downloads

251

Version

1.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ming Yang

Last Published

August 28th, 2018

Functions in ZIM (1.1.0)

zim

Fitting Zero-Inflated Models
pvalue

Function to Compute P-value.
zim.control

Auxiliary for Controlling ZIM Fitting
syph

Example: Syphilis Series
zim.fit

Fitter Function for Zero-Inflated Models
dzim.sim

Simulate Data from DZIM
dzim.smooth

Particle Smoothing for DZIM
injury

Example: Injury Series from Occupational Health
dzim.plot

Trace Plots from DZIM
ZIM-package

Zero-Inflated Models for Count Time Series with Excess Zeros
dzim.fit

Fitter Function for Dynamic Zero-Inflated Models
dzim.filter

Particle Filtering for DZIM
dzim

Fitting Dynamic Zero-Inflated Models
dzim.control

Auxiliary for Controlling DZIM Fitting
bshift

Backshift Operator
ZINB

The Zero-Inflated Negative Binomial Distribution
ZIP

The Zero-Inflated Poisson Distribution