Hi,
I am coding data for a data-set in panel format. I am trying to trim the codes and avoid splitting and merging back the data-sets to make codes neater and more readable.
An example of a panel in the data is:
I am looking for a simple code that produces the third column which contains the summation of values of the second column over the years 2000 to 2002.
Thanks in advance,
Navid
I am coding data for a data-set in panel format. I am trying to trim the codes and avoid splitting and merging back the data-sets to make codes neater and more readable.
An example of a panel in the data is:
year | Precep. | Sum before 2003 |
2000 | 20 | |
2001 | 25 | |
2002 | 15 | |
2003 | 10 | 60 |
2004 | 10 | 60 |
2005 | 15 | 60 |
Thanks in advance,
Navid
Comment