QuentinAndre / pyprocessmacro

A Python library for moderation, mediation and conditional process analysis.
MIT License
91 stars 28 forks source link

negative binomial regression #25

Open JJery-web opened 10 months ago

JJery-web commented 10 months ago

I use model4, where x to mediator m is an ols regression, and x, m to y is a negative binomial regression. How can I modify the code?

I really hope to receive a reply! Thank~

CrasCris commented 3 months ago

idk the last update was 3 years ago

QuentinAndre commented 3 months ago

Sorry, I missed your question. You can try to modify the code yourself, but the fix is far from straightforward... and most importantly there is no guarantee that the model can be interpreted in any meaningful way, given that it would imply multiplying linear coefficients with non-linear coefficients.