makegroup - what is the code to include % deviations?

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

tzink
Posts: 28
Joined: Mon Oct 29, 2012 4:55 pm

makegroup - what is the code to include % deviations?

Postby tzink » Fri Dec 21, 2012 1:10 pm

From the GUI, it is possible to create a group that shows the results of the Active and Comparison scenarios, as well as either the absolute deviation between them or the % deviation (model object -> proc -> make group/table).

The group can also be created, including the deviations, within a program using

Code: Select all

modelname.makegroup(d) groupname @endog

from page 336 of the object reference

However, nothing is mentioned in the manual about including the % deviation instead of the absolute deviation. What is the option key to produce the % deviations?

Thanks

EViews Glenn
EViews Developer
Posts: 2672
Joined: Wed Oct 15, 2008 9:17 am

Re: makegroup - what is the code to include % deviations?

Postby EViews Glenn » Fri Dec 21, 2012 2:17 pm

I'm not seeing what you refer to on p. 336. From the EViews 7 manual...

t= arg
(default= “level”)

Transformation type: “level” (display levels), “pch” (percent
change), “pcha” (display percent change - annual
rates), “pchy” (display 1-year percent change), “dif” (display
1-period differences), “dify” (display 1-year differences).

tzink
Posts: 28
Joined: Mon Oct 29, 2012 4:55 pm

Re: makegroup - what is the code to include % deviations?

Postby tzink » Fri Dec 21, 2012 2:44 pm

t= arg changes the output of the *entire* table. The option in the GUI, "% Deviations: Active from Compare" displays the *only* the deviation in percentage format, leaving the values of the actual variables unchanged. I want to achieve this using a program.

As for the manual reference, I was referring to the Object Reference, Chapter 1, p. 336, the makegroup function under the Model object.

EViews Glenn
EViews Developer
Posts: 2672
Joined: Wed Oct 15, 2008 9:17 am

Re: makegroup - what is the code to include % deviations?

Postby EViews Glenn » Fri Dec 21, 2012 3:02 pm

Oh, I think I understand the question better now.

I haven't double checked this and I have to run and do some other things, but in a brief look at the code, it looks like the undocumented "R" option will do it for you. So replace the "D" with "R".

tzink
Posts: 28
Joined: Mon Oct 29, 2012 4:55 pm

Re: makegroup - what is the code to include % deviations?

Postby tzink » Fri Dec 21, 2012 3:05 pm

Perfect! (r) does the trick.

Thank you so much. I feel better knowing that it's undocumented too--I was getting worried I just couldn't operate the manual properly.

EViews Glenn
EViews Developer
Posts: 2672
Joined: Wed Oct 15, 2008 9:17 am

Re: makegroup - what is the code to include % deviations?

Postby EViews Glenn » Fri Dec 21, 2012 3:15 pm

Should have been documented. Our apologies. I just checked and the documentation has been updated to reflect the option.

Thanks for your patience.


Return to “Models”

Who is online

Users browsing this forum: No registered users and 22 guests