"integrate" a time series variable

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

centroid
Posts: 20
Joined: Fri Feb 05, 2021 4:46 am

"integrate" a time series variable

Postby centroid » Tue Jun 08, 2021 2:14 pm

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: "integrate" a time series variable

Postby EViews Gareth » Tue Jun 08, 2021 2:20 pm

I'm not sure I understand.

@sum ?
Follow us on Twitter @IHSEViews

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

Re: "integrate" a time series variable

Postby startz » Tue Jun 08, 2021 3:30 pm

Code: Select all

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


maybe

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: "integrate" a time series variable

Postby EViews Gareth » Tue Jun 08, 2021 4:11 pm

That’s just @cumsum?
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 10 guests