Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rolling Regression R-squared

    Hello there,

    I am doing a rolling regression and I want to capture the R-squared of the Modell. Does anyone know how to do this?

    Code:
    tsset Country date
    rolling _b _se (df: r = e(df_r)), window(365) stepsize(365) : regress depvar indepvar , vce(r) 
    gen p = 2*ttail(df_r,abs(_b_cons/_se_cons))
    Thank you

  • #2
    https://stats.stackexchange.com/ques...on-in-stata-12

    Comment


    • #3
      Thank you very much Dave this works. But how do I interpret the single resulting R2s? Do I get the R2 for the whole regression by taking the mean?

      Comment

      Working...
      X