Computes the expected value from a one-inflated, zero-truncated negative binomial (OIZTNB) distribution. This function calculates the expected value based on the model parameters and covariates.
E_negbin(b, g, a, X, Z)A numeric vector of expected values for each observation in the dataset.
Numeric vector of coefficients for the main model.
Numeric vector of coefficients for the one-inflation process.
Numeric scalar, the overdispersion parameter of the negative binomial distribution.
Matrix of predictors for the main model, where rows correspond to observations and columns to covariates.
Matrix of predictors for the one-inflation process, structured similarly to `X`.
dEdq_nb for computing partial derivatives of expected values in the OIZTNB model.