Announcement

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

  • Rolling estimates with confidence intervals (graph)

    Dear all, I found this question here. Please ssc install rangestat. The question is, after running rolloing regressions such as:
    Code:
    webuse grunfeld, clear
    rangestat (reg) invest mvalue, interval(year -6 0) by(company)
    *drop if reg_nobs < 7
    how can one obtain the time series plots of estimates along with 95% confidence intervals like

    Click image for larger version

Name:	_20220904185746.png
Views:	1
Size:	96.8 KB
ID:	1680677



    Any suggestions? Thanks.
    Ho-Chuan (River) Huang
    Stata 19.0, MP(4)

  • #2
    You would have to construct confidence intervals from the ingredients provided. For this example, serial dependence bites twice over to invalidate conventional procedures.

    Comment


    • #3
      Dear Nick, I see your point. At this moment, suppose that I generate the (as your concern, incorrect) confidence intervals by
      Code:
      gen high = b_mvalue+2*se_mvalue
      gen low = b_mvalue-2*se_mvalue
      How can I draw a graph like the one I provided above in Stata? Thanks.
      Ho-Chuan (River) Huang
      Stata 19.0, MP(4)

      Comment

      Working...
      X