E_negbin | R Documentation |
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)
b |
Numeric vector of coefficients for the main model. |
g |
Numeric vector of coefficients for the one-inflation process. |
a |
Numeric scalar, the overdispersion parameter of the negative binomial distribution. |
X |
Matrix of predictors for the main model, where rows correspond to observations and columns to covariates. |
Z |
Matrix of predictors for the one-inflation process, structured similarly to |
A numeric vector of expected values for each observation in the dataset.
dEdq_nb
for computing partial derivatives of expected values in the OIZTNB model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.