StatsReporting / stargazer

Python implementation of the R stargazer multiple regression model creation tool
Other
197 stars 48 forks source link

F statistic sometimes has brackets around it #33

Closed MaxGhenis closed 4 years ago

MaxGhenis commented 4 years ago

In some of my regression tables, the F statistic is printed as [[value]], e.g.: image

In other very similar tables, it's shown without them, e.g.: image

The only difference between these sets of models is the set of regressors. I've removed stars and F-statistic degrees of freedom from both; see the notebook for the full code. I couldn't figure out a more minimal example to reproduce the issue.

toobaz commented 4 years ago

Not sure what's causing this, and it's difficult to reproduce without the data. Did c492e65e3eb98746a38277a9878eb6e491e4d731 change anything? Does this happen also with render_latex?

toobaz commented 4 years ago

Never mind, I was able to reproduce. Apparently, a RegressionResults.fvalue is a scalar by default but becomes a 2D numpy.array with (some?) robust standard errors.

toobaz commented 4 years ago

See https://github.com/statsmodels/statsmodels/issues/6778