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
series of unequal length
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Esther
- EViews Developer
- Posts: 149
- Joined: Fri Sep 03, 2010 7:57 am
Re: series of unequal length
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.
If you want to compare the first 1306 observations of y to the last 1306 observations of x, you can say
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 newCode: Select all
series new = x(-3016)Who is online
Users browsing this forum: No registered users and 2 guests
