Hi All,

I have a monthly panel data for which I want to get the average of x variable from the last year (-12 months) up to the end of the following year (+ 12 months), with a minimum of one observation on both sides (lead and lag).

Any advice on this?

G