assign one value to a 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

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

assign one value to a series

Postby cap » Sun Feb 08, 2009 10:08 am

Hello,

Suppose I have one series that has random values in each of its observations. Now, suppose I want to create a 2nd series, and i want every one of its values to be equal to the 2005Q3 value from the 1st series ... how can I do this?


for example, i was hoping something like this would work:

series var2 = var1(2005Q3)


Thanks in advance,
cap

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: assign one value to a series

Postby startz » Sun Feb 08, 2009 12:19 pm

Hello,

Suppose I have one series that has random values in each of its observations. Now, suppose I want to create a 2nd series, and i want every one of its values to be equal to the 2005Q3 value from the 1st series ... how can I do this?


for example, i was hoping something like this would work:

series var2 = var1(2005Q3)


Thanks in advance,
cap

Code: Select all

series var2 = @elem(var1,"2005Q3")


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests