Announcement

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

  • dynamically demeaning data

    Hello Statalists,

    I need to dynamically demean a time series by the following backward looking rolling window of forty quarters:

    Click image for larger version

Name:	rolling window.jpg
Views:	2
Size:	3.9 KB
ID:	1710276

    That is, I need to replace each observation with the observation minus the mean computed in a rolling window of 10 years.

    Can you help me please?

    Giacomo

Working...
X