Page 1 of 1

dtable customization question

Posted: Mon Mar 25, 2013 7:31 am
by bojiang19
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?

Re: dtable customization question

Posted: Mon Mar 25, 2013 8:57 am
by EViews Jason
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