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.
dfee_pois(b, g, X, Z, dummies)A matrix of marginal first-exposure effects. Each column corresponds to a covariate, and each row corresponds to an observation in the data.
A numeric vector of estimated coefficients for the rate.
A numeric vector of estimated coefficients for inflation.
A numeric matrix of covariates for the rate.
A numeric matrix of covariates for inflation.
A character vector naming the binary (dummy) variables to compute marginal effects for.
dfee, fee_pois, dfee_nb