Skip to content

ENH: adding info on rsquared type in .summary() when no intercept #5078

Closed

Description

@bertrandhaut

The computation of R² is different (centered/uncentered) depending on the presence of an intercept.

While this is clear in the .rsquared() documentation, this can be suprising for people using only the .summary() function.

Maybe it can useful to add a mention somewhere in the output of .summary() that it is an "uncentered" R².

I see two possibilities:

  • additional warning at the end of the output
  • adding "'(uncentered)" just next to the "R-squared" label
OLS Regression Results                            
==============================================================================
Dep. Variable:                Lottery   R-squared (uncentered):          0.348
Model:                            OLS   Adj. R-squared (uncentered):     0.333
Method:                 Least Squares   F-statistic:                     22.20
Date:                Mon, 14 May 2018   Prob (F-statistic):           1.90e-08
Time:                        21:48:09   Log-Likelihood:                -379.82
No. Observations:                  86   AIC:                             765.6
Df Residuals:                      83   BIC:                             773.0
Df Model:                           2                                         
Covariance Type:            nonrobust   

If you think it's a good idea, I can try to propose a Pull Request.

Activity

  1. josef-pkt commented on Aug 31, 2018

    @josef-pkt
    Member

    The idea sounds good to me.
    Based on your output, there is enough space for adding it directly (possibility 2)

    PR to add this will be welcome
    RegressionResults.summary looks easy to change
    summary2 might need a bit of digging to where the default is defined (I haven't looked for it)

  2. josef-pkt commented on Sep 7, 2018

    @josef-pkt
    Member

    added in #5083

  3. added this to the 0.10 milestone on Sep 7, 2018
  4. changed the title [-]adding info on rsquared type in .summary() when no intercept[/-] [+]ENH: adding info on rsquared type in .summary() when no intercept[/+] on Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions