Page 1 of 1

series of unequal length

Posted: Thu Jan 05, 2012 3:17 am
by Nau2306
Hi

i am using eviews 6. I have got two series, say x and y, such that x has got 4322 entries and y only 1306. I would like to compare the 1306 observations of y with the last 1306 observations of x, how do i proceed with it?

Thanks

Re: series of unequal length

Posted: Thu Jan 05, 2012 11:03 am
by EViews Esther
Can you please clarify your question? Are you trying to make the element-wise comparison? Or, are you simply interested in getting any subsets of the series?

As an example, to compare the last 1306 observations in the two series of x and y, you can simply enter smpl 3016 4322 in the command window. When you generate a new series (e.g. series new = x), you will see the new series with the observations of interest (i.e. the last 1306 observations of x) only.

Code: Select all

smpl 3017 4322 series new = x smpl @all show new
If you want to compare the first 1306 observations of y to the last 1306 observations of x, you can say

Code: Select all

series new = x(-3016)