I want to generate in Python high quality statistical tables used for publications.
In Stata, one can use the community-contributed family of commands estout
:
sysuse auto, clearregress mpg weightestimates store Aregress mpg weight price estimates store Bregress mpg weight price lengthestimates store Cregress mpg weight price length displacementestimates store Desttab A B C D, se r2 nonumber mtitle("Model 1""Model 2""Model 3""Model 4")---------------------------------------------------------------------------- Model 1 Model 2 Model 3 Model 4 ----------------------------------------------------------------------------weight -0.00601*** -0.00582*** -0.00304 -0.00354 (0.000518) (0.000618) (0.00177) (0.00212) price -0.0000935 -0.000173 -0.000174 (0.000163) (0.000168) (0.000169) length -0.0966 -0.0947 (0.0577) (0.0582) displacement 0.00433 (0.00983) _cons 39.44*** 39.44*** 49.68*** 50.02*** (1.614) (1.622) (6.329) (6.410) ----------------------------------------------------------------------------N 74 74 74 74 R-sq 0.652 0.653 0.666 0.667 ----------------------------------------------------------------------------Standard errors in parentheses* p<0.05, ** p<0.01, *** p<0.001
How can I run multiple regressions in Python and summarise the information into some nice tables?
I would also like to be export these in Excel.