Dear Eviews,
Do you have any function that does up/down sorting of elements in vector? but not ascending/descending sorting ..
Here an example. I have to vecs. I want to sort up/down the VEC2, so later to make element by element multiplication using @emult(Vec1,Vec2)
Thanks
Andrejs
How to up/down elements in Vector?
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
- EViews Developer
- Posts: 570
- Joined: Thu Apr 25, 2013 7:48 pm
Re: How to up/down elements in Vector?
Hello,
It appears you want to reverse the vector. While EViews doesn't provide a reversing function, you can achieve the same result via other operations, e.g.,
It appears you want to reverse the vector. While EViews doesn't provide a reversing function, you can achieve the same result via other operations, e.g.,
Code: Select all
VEC2 = @capplyranks(VEC2, @seq(VEC2.@rows, -1, VEC2.@rows))
Re: How to up/down elements in Vector?
Dear Matt,
great. many thanks. it works!
I also was spinning "@capplyranks", but without success, but you made it :)
Andrejs
great. many thanks. it works!
I also was spinning "@capplyranks", but without success, but you made it :)
Andrejs
Who is online
Users browsing this forum: Baidu [Spider] and 2 guests