Hi everbody,
I have two variables, one is year (a list of years from 1900 to 2000), the other is earnings (contains a numerical values for each year)
Is there any way to generate a third variable with the average of earnings which only includes values coresponding to years after the respective one?
so that, for example, the value of the third variable for the year 1995 is the average of earnings from 1995 - 2000.
Thanks!
I have two variables, one is year (a list of years from 1900 to 2000), the other is earnings (contains a numerical values for each year)
Is there any way to generate a third variable with the average of earnings which only includes values coresponding to years after the respective one?
so that, for example, the value of the third variable for the year 1995 is the average of earnings from 1995 - 2000.
Thanks!
Comment