Zero-and-one inflated binomial for proportions with excess zeros AND ones. Commonly needed in ecological applications where both absence (structural) and perfect detection (saturation) have distinct processes.
Details
The ZOIB (Zero-and-One Inflated Binomial) model has three components:
Zero process: P(structural zero) = pi_0
One process: P(structural one | not zero) = pi_1
Binomial process: P(Y=y | non-structural) follows binomial
Use when both boundaries (0 and n) have excess observations.
Examples
# Create family object
fam <- ratiod_zoibinomial()
print(fam)
#> tulpaRatio family: zoibinomial
#> [Zero-inflated model]
#> Zero-and-one inflated binomial, fixed trials denominator
#>
#> Numerator: binomial(logit)
#> ZI prob: bernoulli(logit)
#> Denominator: fixed (fixed)