Cumulated Sum

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Cumulated Sum

Postby RDS » Wed Oct 28, 2015 1:33 am

I have a time series of flows: flows(t) = [flow(0),flow(1),....flow(T)]
where [flow(0),flow(1),....flow(T)] are the observations at time 0,1,...T, respectively.

I would like to generate a stock variable (S(t)), which is simply the cumulated sum of flows:
S(t) = [S(0),S(1),....S(T)]

where

S(0) = f(0)
S(1) = f(0) + f(1)
...
S(T) = f(0) + f(1) +,..., + S(T).

Is there a simple procedure in eviews?

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Cumulated Sum

Postby startz » Wed Oct 28, 2015 6:03 am

@cumsum


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests