Please i need your help....
Hi, I'm new in using Eviews and my question is about the element by element assessment of two column vectors, eg, x is a 9x1 vector w is another vector of 9x1, I need to evaluate element by element of W and X independently without extracting them to a scalar, because operators are not running >.<,=>,<= when working on vectors or matrix if one element does not meet the specified conditional.
program
if x <w Then
vector z = (x-w) +2
endif
with vectors, if an element w <x is not carried out
thank you very much!!!
Element by element
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Element by element
You want the @elt function. It is documented in the EViews 7 command reference.
Re: Element by element
hi, another question......
Do you know how is it in Eviews 6?, i got not Eviews 7....
Thank you so much
Do you know how is it in Eviews 6?, i got not Eviews 7....
Thank you so much
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Element by element
There is no function like that on EViews 6
Re: Element by element
hi,
I know it, but How would be the way programming in Eviews 6...In reality i need a tip for this it.
thanks and excuse me the inconvenience!!!
I know it, but How would be the way programming in Eviews 6...In reality i need a tip for this it.
thanks and excuse me the inconvenience!!!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Element by element
The only thing you can do is use a for loop to run through and compare the elements one at a time
Re: Element by element
ok,thanks for you help.
Who is online
Users browsing this forum: No registered users and 2 guests
