E_pois {oneinfl}R 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.


[Package oneinfl version 1.0.2 Index]