one single program that works for differently named objects
Posted: Sat Oct 20, 2012 7:47 am
Hi everyone,
I am absolutely new to eViews and I am very grateful for your patience with me and your advice.
I have written a program which I want to run on different pages in my workfile, which contains times series that have similar names. Just to clarify what I mean, here is a short example.
Page 1: series TTT_8
Page 2: series TTT_4
Page 3: series TTT_12
So, the pages each contain a series with the Name TTT_ followed by an id, which can have one digit, also 2,3 or more. The programs that I have written look like this:
For Page 1:
For Page 2:
For Page 3:
As you can imagine, there will be more than 3 pages and more than 3 programs to write in the future. So, I would like to write a program, that works for objects with different names. Is there a possibiliy to substitute the id in my times series with something like a star or a question mark? I hope I have made myself clear. Not so easy to explain for a beginner. Anyway, what you see below is what I have in mind for a solution:
Or with a question mark:
Thank you very much for your help. I really appreciate it.
I am absolutely new to eViews and I am very grateful for your patience with me and your advice.
I have written a program which I want to run on different pages in my workfile, which contains times series that have similar names. Just to clarify what I mean, here is a short example.
Page 1: series TTT_8
Page 2: series TTT_4
Page 3: series TTT_12
So, the pages each contain a series with the Name TTT_ followed by an id, which can have one digit, also 2,3 or more. The programs that I have written look like this:
For Page 1:
Code: Select all
series r=TTT_8/TTT_8(-1)
Code: Select all
series r=TTT_4/TTT_4(-1)
Code: Select all
series r=TTT_12/TTT_12(-1)
Code: Select all
series r=TTT_*/TTT_*(-1)
Code: Select all
series r=TTT_?/TTT_?(-1)