problem using @otod

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

zezza
Posts: 30
Joined: Fri May 28, 2010 5:27 am

problem using @otod

Postby zezza » Sat Sep 28, 2024 7:02 am

I need to replicate the example on p.159 of the Command and Programming Reference manual for Eviews 13.
I want to create a table extracting values from a quarterly time series.
If I write

show @elem(gdp, @otod(2))

I get the error message "Illegal date @otod(2)"

If I write

%date=@otod(2)
show @elem(gdp, %date)

Eviews returns the right value

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13598
Joined: Tue Sep 16, 2008 5:38 pm

Re: problem using @otod

Postby EViews Gareth » Sat Sep 28, 2024 10:03 am

Yes, just a quirk of the EViews programming language.

zezza
Posts: 30
Joined: Fri May 28, 2010 5:27 am

Re: problem using @otod

Postby zezza » Sat Sep 28, 2024 10:38 am

thank you for such a quick reply!
Maybe it is good to update the manual that suggests the wrong code...


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests