how to subtract part of two different series

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

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

Nau2306
Posts: 74
Joined: Thu Nov 17, 2011 11:51 am

how to subtract part of two different series

Postby Nau2306 » Wed Dec 14, 2011 3:49 am

Hi

I am using eviews6. My question is given two series x and y each with 2000 observations, how do i subtract y from x (x-y) only for observations from 1500 to 2000 and then sum all the differences?

Thanks

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

Re: how to subtract part of two different series

Postby EViews Gareth » Wed Dec 14, 2011 8:48 am

Code: Select all

smpl 1500 2000 scalar mysum = @sum(x-y)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests