Picking the highest value over a group of variables
Posted: 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
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