Page 1 of 1

Maximum function

Posted: Wed Jul 08, 2020 7:32 am
by pka
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

Re: Maximum function

Posted: Wed Jul 08, 2020 8:04 am
by EViews Gareth
There is no function to do that in EViews 10.

You could use @recode

Re: Maximum function

Posted: Wed Jul 08, 2020 8:10 am
by pka
Like @recode(x>y, x, y)?

Thanks.