dtable customization question

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

bojiang19
Posts: 7
Joined: Wed Mar 20, 2013 10:54 pm

dtable customization question

Postby bojiang19 » Mon Mar 25, 2013 7:31 am

ddtabopts is a new command in Eviews 8, I suppose. I think it is meant to customize the dtable at the table level, rather than at row level, since there is another ddrowopts. However, for object reference of tranform(row, trans) and freqconv(row, conv), there is no explanation of how to set row=all (for the whole table). And this row parameter is not optional. Then how do we set the trans and conv at the table level, which can be done using the interactive menu?
It takes me quite a while to figure out how to set the row one-row at a time. Then a loop is needed to cover the whole table. But this seems to defeat the purpose of ddtabopts. All is all, it seems the document missed out on an explanation on how to set row=all, can someone help?

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: dtable customization question

Postby EViews Jason » Mon Mar 25, 2013 8:57 am

There is a typo in the docs for ddrowopts. The syntax should be

Code: Select all

group_name.ddrowopts(series, row) args
and not

Code: Select all

group_name.ddrowopts(row) args
When using ddtabopts with the transform and freqconv options, you are only setting default transform or freq conversion for the first or second row of the table. The ddrowopts command is used to override those table defaults.

If you were to use ddrowopts(row) to set transform or freqconv on a specified row and series prior to using ddtabopts, ddtabopts will have not visible effect. If you do not use ddrowopts and only use ddtabopts, then every first row of every series or second row of each series (depending on whether or not row=1 or row=2) will be set. To remove any overrides made by ddrowopts, use ddrowopts again to switch back to using the table default via 'tabdefault'.

Code: Select all

'Assuming cgrp is a new group cgrp.ddtabopts transform(1, yd) 'use year difference for every first row of a series cgrp.ddrowopts(1,1) transform(d) 'have the first row of the first series use 1 period difference cgrp.ddtabopts transform(1, l) 'set the default for every first row of a series to level. Note: the first row of the first series will not change since it has been overridden and remain using 1 period difference cgrp.ddrowopts(1,1) transform(tabdefault) 'undo the override, which would now set the first row of the first series to level


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests