E_negbin_noinfl {oneinfl}R Documentation

Expected Value for Zero-Truncated Negative Binomial Distribution

Description

Computes the expected value from a zero-truncated negative binomial (ZTNB) distribution based on the model parameters and covariates.

Usage

E_negbin_noinfl(b, a, X)

Arguments

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.

Value

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

See Also

dEdq_nb_noinfl for computing partial derivatives of expected values in the ZTNB model.


[Package oneinfl version 1.0.2 Index]