E_negbin_noinfl: Expected Value for Zero-Truncated Negative Binomial...

View source: R/E_negbin_noinfl.R

E_negbin_noinflR 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.


oneinfl documentation built on April 4, 2025, 12:05 a.m.