Hi,
I have problem to put average MAE from rolling forecast into table
because of type of scalar, matrix and string problem.
I would like to know how to code them.
Help me please
How to code for putting average MAE from rolling forecast into table
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
How to code for putting average MAE from rolling forecast into table
- Attachments
-
- make table (1).prg
- (1.07 KiB) Downloaded 249 times
-
- make table.wf1
- (336.45 KiB) Downloaded 220 times
-
- make table.jpg (324.84 KiB) Viewed 3497 times
Last edited by chairake on Sun Dec 16, 2018 11:09 pm, edited 1 time in total.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13307
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to code for putting average MAE from rolling forecast into table
Easiest way for you is probably to just add the numbers and divide (i.e. calculate the mean manually).
Follow us on Twitter @IHSEViews
Re: How to code for putting average MAE from rolling forecast into table
Thank you for your reply EViews Gareth but I have ever try
the way as your recommend.
by @sum(.......)/7
zresult_{%n}(10,2) = @sum(@mae({%n}_r{!m}f,{%n}))/7
but the program tell the error that
Scalar sent to function which operates on a matrix in
"ZRESULT_{%N}(10,2) = @SUM(@MAE(BMIX_E_R1F,BMIX_E))/7".
Because i don't understand truly about type of object and how to manage them.
How can I solve the problem.
the way as your recommend.
by @sum(.......)/7
zresult_{%n}(10,2) = @sum(@mae({%n}_r{!m}f,{%n}))/7
but the program tell the error that
Scalar sent to function which operates on a matrix in
"ZRESULT_{%N}(10,2) = @SUM(@MAE(BMIX_E_R1F,BMIX_E))/7".
Because i don't understand truly about type of object and how to manage them.
How can I solve the problem.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13307
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to code for putting average MAE from rolling forecast into table
Just use + rather than a function.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: Google [Bot] and 31 guests