stargazer
stargazer copied to clipboard
Output for get_margeff (marginal effects of poisson estimates)
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!