Hello,
I am trying to visualise an aggregate trend.
The variables I use are: year , expend, id, year_event
Now I want to show the expenditures of every id 10 years before and ten years after year_event that is a unique year for every id.
So, in the end there should be one line that runs over the timeline:
year_event -10 yrs; year_event -9 yrs; year_event -8 yrs; ....year_event; year_event +1 yr; .....
Can someone help, please?
Thank you!
Rebecca
I am trying to visualise an aggregate trend.
The variables I use are: year , expend, id, year_event
Now I want to show the expenditures of every id 10 years before and ten years after year_event that is a unique year for every id.
So, in the end there should be one line that runs over the timeline:
year_event -10 yrs; year_event -9 yrs; year_event -8 yrs; ....year_event; year_event +1 yr; .....
Can someone help, please?
Thank you!
Rebecca

Comment