Skip to contents

Distribution families for handling excess zeros in count data. Zero-inflation occurs when there are more zeros than expected under the standard count distribution.

Two model types are available:

  • Zero-inflated (ZI): Mixture of point mass at zero and count distribution

  • Hurdle: Separate processes for zero vs positive counts

Usage

# S3 method for class 'ratiod_family_zi'
print(x, ...)

Arguments

x

A ratiod_family_zi object

...

Ignored

Examples

ratiod_zipois()
#> tulpaRatio family: zipois_gamma 
#> [Zero-inflated model]
#> Zero-inflated Poisson numerator, Gamma denominator 
#> 
#> Numerator:  poisson(log)
#> ZI prob:    bernoulli(logit)
#> Denominator: gamma (log) 
ratiod_hurdle_negbin()
#> tulpaRatio family: hurdle_negbin_negbin 
#> [Hurdle model]
#> Hurdle negative binomial numerator, negative binomial denominator 
#> 
#> Numerator:  neg_binomial_2(log)
#> Hurdle:     bernoulli(logit)
#> Denominator: neg_binomial_2 (log)