Page 1 of 1
outputing years in a table
Posted: Thu Nov 18, 2010 2:45 pm
by nesheus
How can I put the years as title in a table. I have tried this and didn't work. Can you recommend a solution please? thanks
scalar yy=@first
for !j=1 to 20
setcell(results,3,4+!j,yy+!j)
next
Re: outputing years in a table
Posted: Thu Nov 18, 2010 2:52 pm
by EViews Jason
Use
Code: Select all
setcell(results,3,4+!j,@str(yy+!j))
Re: outputing years in a table
Posted: Thu Nov 18, 2010 3:32 pm
by nesheus
scalar yy=@first expression doesn't work!
Re: outputing years in a table
Posted: Thu Nov 18, 2010 3:53 pm
by EViews Gareth
Perhaps you could explain what you're trying to do.
Re: outputing years in a table
Posted: Thu Nov 18, 2010 4:06 pm
by nesheus
I am trying to report forecast numbers with years. I cannot put the years on the title as I epxlained in the beginning of my posting.
thanks a lot for your help.
Re: outputing years in a table
Posted: Thu Nov 18, 2010 4:08 pm
by EViews Gareth
Code: Select all
results(1,1) = "1979"
results(1,2) = "1872"
Re: outputing years in a table
Posted: Thu Nov 18, 2010 4:51 pm
by nesheus
I know to put the numbers in the table. If you look at my original posting the forecast window changes so I don't know the years.
Anyway I found a way to do it.
Re: outputing years in a table
Posted: Thu Nov 18, 2010 5:22 pm
by EViews Gareth
Unfortunately your original, and subsequent, posts were not particularly clear. Asking us how to find "the years" is not particularly meaningful.