Skip to contents

Create a zero-inflated negative binomial specification

Usage

zi_negbin(formula = NULL)

Arguments

formula

Optional formula for the zero-inflation probability. If NULL, uses intercept-only model for P(structural zero).

Value

A ratiod_zi object

Examples

# Intercept-only ZI
zi_negbin()
#> tulpaRatio Zero-Inflation Specification
#> ==================================
#> Type: Zero-Inflated Negative Binomial 
#> Formula: ~ 1 (intercept only)

# ZI probability depends on multiple covariates
zi_negbin(~ habitat + season)
#> tulpaRatio Zero-Inflation Specification
#> ==================================
#> Type: Zero-Inflated Negative Binomial 
#> Formula: ~habitat + season