of observations in the input data set. When you specify multiple variables in the ID
statement, PROC MEANS selects the maximum value by processing the variables in the
ID statement in the order in which you list them. PROC MEANS determines which
observation to use from all the ID variables by comparing the values of the first ID
variable. If more than one observation contains the same maximum (minimum) ID
value, then PROC MEANS uses the second and subsequent ID variable values as
“tiebreakers.” In any case, all ID values are taken from the same observation for any
given BY group or classification level within a type.
See “Sorting Orders for Character ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.