Displaying 2 results from an estimated 2 matches for "r_ec01".
Did you mean:
ec01
2010 Jun 14
2
recursive function
...ationg in a recursive way:
I have a data frame more or less like this:
variable year DELTA
EC01 2006 /
EC01 2007 10
EC01 2008 5
EC01 2009 9
And then I have at time 2009 a variable called R_EC01(2009)=5
What I have to do is to construct the R_EC01 time series by starting from the 2009 value:
R_EC01(2008)=R_EC01(2009)-DELTA(2009)
R_EC01(2007)=R_EC01(2008)-DELTA(2008)
R_EC01(2006)=R_EC01(2007)-DELTA(2007)
In terms of number, the results that i should get are:
R_EC01(2008)=5-9=-4
R_EC01(20...
2010 Jun 16
2
data frame
...2006 EC02 9 NA
M2 2007 EC02 6 10
I'm trying to build the time series of the variables by applying the following formulas in a recursive way(by starting from the value of R_pivot at time 2007)
R_EC01(2006)=R_EC01(2007)-Delta_EC01(2007)
R_EC01(2005)=R_EC01(2006)-Delta_EC01(2006)
In terms of number I would have:
R_EC01(2006)=5-4=1
R_eco1(2005)=1-2=-1
And the same should be done for variable EC02. In addition, this calculations should be down grouping by variable e cluster..so the result should...