@epow function

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

Posts: 1
Joined: Wed Nov 29, 2017 3:31 pm

@epow function

Postby yscamara » Fri Apr 27, 2018 6:42 am

I have two matrices " mat_rel_v_usd " and " mat_two_usd " with the same dimension. Then I wanted create a matrix named " mat_wto_usd " equal to " mat_rel_v_usd " exponent the " mat_two_usd " , therefore i run the following expression: " matrix mat_weighted_usd = @epow(mat_rel_v_usd,mat_wto_usd ) ". Unfortunately, Eviews is not performing this expression. Indeed, when I run the function nothing happens. I recall that, there is no overflow risk as the elements of the matrix " mat_wto_usd " are weights (i.e, 0.1, 0.08...) that sum up to one. I have attached a wf with the two matrices.
Thanks very much in advance
(9.41 MiB) Downloaded 12 times

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

Re: @epow function

Postby EViews Gareth » Fri Apr 27, 2018 7:49 am

mat_rel_v_usd contains NAs and negative numbers.

mat_tw_usd contains NAs and non-integers.

Thus the calculation cannot be performed.
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 1 guest