Maximum function

For questions regarding programming in the EViews programming language.

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

pka
Posts: 23
Joined: Wed Apr 25, 2018 1:54 pm

Maximum function

Postby pka » Wed Jul 08, 2020 7:32 am

Hello,

I need to compute the maximum of a pair of numbers e.g. x and y in a program.

The command !mxm = @pmax(x,y) does not work. It gives an error "@pmax is an illegal or reserved name".

Any suggestion on how I can get to compute the pairwise maximum?

Thanks.
PS. Eviews 10

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

Re: Maximum function

Postby EViews Gareth » Wed Jul 08, 2020 8:04 am

There is no function to do that in EViews 10.

You could use @recode
Follow us on Twitter @IHSEViews

pka
Posts: 23
Joined: Wed Apr 25, 2018 1:54 pm

Re: Maximum function

Postby pka » Wed Jul 08, 2020 8:10 am

Like @recode(x>y, x, y)?

Thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 28 guests