E_negbin {oneinfl}R Documentation

Expected Value for One-Inflated Zero-Truncated Negative Binomial Distribution

Description

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.

Usage

E_negbin(b, g, a, X, Z)

Arguments

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 'X'.

Value

A numeric vector of expected values for each observation in the dataset.

See Also

dEdq_nb for computing partial derivatives of expected values in the OIZTNB model.


[Package oneinfl version 1.0.2 Index]