stargazer icon indicating copy to clipboard operation
stargazer copied to clipboard

Output for get_margeff (marginal effects of poisson estimates)

Open B-Benja opened this issue 3 years ago • 0 comments

Firs of all, thank you very much for the very useful library. It works very well with OLS outputs, but is it also possible to get marginal effects for a poisson regression as a stargazer (table & latex) output?

Sample code: reg_ols = smf.ols(formula= 'Count_data ~ Variable1Variable2', data=df).fit(disp=0) reg_poisson = smf.poisson(formula= 'Count_data ~ Variable1Variable2', data=df).fit() margins_poisson = reg_poisson.get_margeff(at='overall', method='dydx') reg_results = Stargazer([reg_ols, margins_poisson])

Currently, it results in 'Please use trained OLS models as inputs'. Thanks in advance for any advise and help!

B-Benja avatar Jun 02 '22 09:06 B-Benja