series of unequal length

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

series of unequal length

Postby Nau2306 » Thu Jan 05, 2012 3:17 am

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

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

Re: series of unequal length

Postby EViews Esther » Thu Jan 05, 2012 11:03 am

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)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests