Error @rapplyranks: vector sent to function which operates on a matrix.

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

andrejs
Posts: 3
Joined: Sat Feb 24, 2018 8:26 am

Error @rapplyranks: vector sent to function which operates on a matrix.

Postby andrejs » Sat Feb 24, 2018 11:22 am

Hi,

would someone please help me with @rapplyranks command error, am I missing something in the syntax?

As a simple example, I have 10x5 matrix A at and 5x1 vector F at hand. Following the manual on @rapplyrank, I then run:
matrix d = @rapplyranks(a,f)
Which produces the following error: vector sent to function which operates on a matrix.

Im a bit confused - what vector instead of matrix? Isn't it according to syntax where first paramater A is a matrix and second parameter f is a vector?

[Please see attached the very simple workfile, in case it helps to clarify]

Thank you in advance,
Andrejs
Attachments
rapply.WF1
(11.82 KiB) Downloaded 16 times

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

Re: Error @rapplyranks: vector sent to function which operates on a matrix.

Postby EViews Gareth » Sun Feb 25, 2018 9:56 pm

What's the build date and version of EViews (Help-About EViews)?
Follow us on Twitter @IHSEViews

andrejs
Posts: 3
Joined: Sat Feb 24, 2018 8:26 am

Re: Error @rapplyranks: vector sent to function which operates on a matrix.

Postby andrejs » Mon Feb 26, 2018 12:18 am

Its Eviews 10, Jun 26 2017 build.
Might it be the case that something has changed in @rapplyranks syntax?

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

Re: Error @rapplyranks: vector sent to function which operates on a matrix.

Postby EViews Gareth » Mon Feb 26, 2018 5:23 am

Update to the latest version.
Follow us on Twitter @IHSEViews

andrejs
Posts: 3
Joined: Sat Feb 24, 2018 8:26 am

Re: Error @rapplyranks: vector sent to function which operates on a matrix.

Postby andrejs » Mon Feb 26, 2018 6:25 am

Thanks, it solved the issue!

Have a nice day,
Andrejs


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 6 guests