E_pois: Expected Value for One-Inflated Poisson Distribution

View source: R/E_pois.R

E_poisR Documentation

Expected Value for One-Inflated Poisson Distribution

Description

Computes the expected value from a one-inflated Poisson (OIPP) distribution based on the model parameters and covariates.

Usage

E_pois(b, g, X, Z)

Arguments

b

Numeric vector of coefficients for the main Poisson model.

g

Numeric vector of coefficients for the one-inflation process.

X

Matrix of predictors for the main Poisson 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_pois for computing partial derivatives of expected values in the OIPP model.


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