Page 1 of 1

how to subtract part of two different series

Posted: Wed Dec 14, 2011 3:49 am
by Nau2306
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

Re: how to subtract part of two different series

Posted: Wed Dec 14, 2011 8:48 am
by EViews Gareth

Code: Select all

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