Page 1 of 1

assign one value to a series

Posted: Sun Feb 08, 2009 10:08 am
by cap
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

Re: assign one value to a series

Posted: Sun Feb 08, 2009 12:19 pm
by startz
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")