Page 1 of 1

"integrate" a time series variable

Posted: Tue Jun 08, 2021 2:14 pm
by centroid
How do I sum a time series variable through a command which I could use in a formula link? My idea is to use a command for a discrete time version of an integral S(t)=Integral_{t_0}^t s(t) dt, given a time series whose increment should be added up, given some initial value. I would prefer to avoid script programming, since this would interfere with an automated workflow to some degree.

Re: "integrate" a time series variable

Posted: Tue Jun 08, 2021 2:20 pm
by EViews Gareth
I'm not sure I understand.

@sum ?

Re: "integrate" a time series variable

Posted: Tue Jun 08, 2021 3:30 pm
by startz

Code: Select all

series summation = 0 smpl 2 @last summation = summation(-1) + x
maybe

Re: "integrate" a time series variable

Posted: Tue Jun 08, 2021 4:11 pm
by EViews Gareth
That’s just @cumsum?