dfee_pois: Marginal First-Exposure Effects for One-Inflated Poisson...

View source: R/dfee_pois.R

dfee_poisR Documentation

Marginal First-Exposure Effects for One-Inflated Poisson Model

Description

This function is used internally by dfee. The function computes analytical derivatives of the FEE with respect to covariates, and uses discrete differences for binary indicators.

Usage

dfee_pois(b, g, X, Z, dummies)

Arguments

b

A numeric vector of estimated coefficients for the rate.

g

A numeric vector of estimated coefficients for inflation.

X

A numeric matrix of covariates for the rate.

Z

A numeric matrix of covariates for inflation.

dummies

A character vector naming the binary (dummy) variables to compute marginal effects for.

Value

A matrix of marginal first-exposure effects. Each column corresponds to a covariate, and each row corresponds to an observation in the data.

See Also

dfee, fee_pois, dfee_nb


fee documentation built on Aug. 8, 2025, 7:45 p.m.

Related to dfee_pois in fee...