Picking the highest value over a group of variables

For questions regarding programming in the EViews programming language.

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

bjohn
Posts: 15
Joined: Fri Mar 11, 2011 8:13 am

Picking the highest value over a group of variables

Postby bjohn » Thu May 19, 2011 2:53 am

Suppose I have five variables: a,b,c,d and e.

I want a command which for any given observation, returns the max of the values of a,b,c,d and e.

The @max command returns the highest value of a single variable over a specified time period, but I want to max "the other way"- i.e. across variables but for a single observation.

Does such a command exist? And does it propagate NA's? (Ideally I would like one which doesn't).

Many thanks

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

Re: Picking the highest value over a group of variables

Postby EViews Gareth » Thu May 19, 2011 8:01 am

@rmax


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest