Learn R Programming

hurdlr (version 0.1)

Zero-Inflated and Hurdle Modelling Using Bayesian Inference

Description

When considering count data, it is often the case that many more zero counts than would be expected of some given distribution are observed. It is well established that data such as this can be reliably modelled using zero-inflated or hurdle distributions, both of which may be applied using the functions in this package. Bayesian analysis methods are used to best model problematic count data that cannot be fit to any typical distribution. The package functions are flexible and versatile, and can be applied to varying count distributions, parameter estimation with or without explanatory variable information, and are able to allow for multiple hurdles as it is also not uncommon that count data have an abundance of large-number observations which would be considered outliers of the typical distribution. In lieu of throwing out data or misspecifying the typical distribution, these extreme observations can be applied to a second, extreme distribution. With the given functions of this package, such a two-hurdle model may be easily specified in order to best manage data that is both zero-inflated and over-dispersed.

Copy Link

Version

Install

install.packages('hurdlr')

Monthly Downloads

162

Version

0.1

License

GPL (>= 2)

Maintainer

Earvin Balderama

Last Published

July 2nd, 2017

Functions in hurdlr (0.1)

GenPareto

The Generalized Pareto Distribution
PE

Extreme Count Probability Likelihood
dist_ll

Distributional Likelihood for Hurdle Model Count Data Regression
hurdle

Hurdle Model Count Data Regression
loglik_zip

Zero-inflated Poisson Data Likelihood
mlnorm

Density Function for Discrete Log Normal Distribution
PT

Typical Count Probability Likelihood
PZ

Zero Count Probability Likelihood
hurdle_control

Control Parameters for Hurdle Model Count Data Regression
loglik_zinb

Zero-inflated Negative Binomial Data Likelihood
update_beta

MCMC Second-Component Parameter Update Function for Hurdle Model Count Data Regression
update_pars

MCMC Third-Component Parameter Update Function for Hurdle Model Count Data Regression
update_probs

MCMC Probability Update Function for Hurdle Model Count Data Regression
zero_nb

Zero-Inflated Negative Binomial Regression Model
zero_poisson

Zero-Inflated Poisson Regression Model