vincentarelbundock / marginaleffects

R package to compute and plot predictions, slopes, marginal means, and comparisons (contrasts, risk ratios, odds, etc.) for over 100 classes of statistical and ML models. Conduct linear and non-linear hypothesis tests, or equivalence tests. Calculate uncertainty estimates using the delta method, bootstrapping, or simulation-based inference
https://marginaleffects.com
Other
392 stars 43 forks source link

Zero-Inflated Models #1099

Closed mprimbs closed 2 months ago

mprimbs commented 2 months ago

Dear Team,

I recently worked with zeroinfl() which provides estimates for zero-inflated models. For example, if you attempt to estimate a zero-inflated model with an assumed Poisson distribution, you get one set of coefficients for the Count Model, and one set of coefficients for the Zero-Inflated model.

Marginal effects can compute marginal effects from an object created by zeroinfl(), but I am not sure of which of the two models it calculates marginal effects (and how can I change that if I want marginal effects for both)?

Best,

Max

vincentarelbundock commented 2 months ago

Use the type argument and read the documentation for the available types in your modeling package.

mprimbs commented 2 months ago

Thanks!