View source: R/E_negbin_noinfl.R
E_negbin_noinfl | R Documentation |
Computes the expected value from a zero-truncated negative binomial (ZTNB) distribution based on the model parameters and covariates.
E_negbin_noinfl(b, a, X)
b |
Numeric vector of coefficients for the regression model. |
a |
Numeric scalar, the overdispersion parameter of the negative binomial distribution. |
X |
Matrix of predictors for the model, where rows correspond to observations and columns to covariates. |
A numeric vector of expected values for each observation in the dataset.
dEdq_nb_noinfl
for computing partial derivatives of expected values in the ZTNB model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.