Series of overlapping data
Posted: Mon Mar 12, 2012 6:06 am
I am working on some times series data and I would be grateful if someone could help.
I am trying to create a series where each variable is generated as a sum of the next k period observations (e.g. k=120). So I am looking for a way to make this command easier:
/Junim
I am trying to create a series where each variable is generated as a sum of the next k period observations (e.g. k=120). So I am looking for a way to make this command easier:
Code: Select all
Series y=x+x(+1)+x(+2)+...+x(+k)/Junim