SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3

Returns the smallest value

Category: Descriptive Statistics

Syntax

MIN ( argument,argument , )

Arguments

argument

Comparisons

The MIN function returns a missing value (.) only if all arguments are missing.

The MIN operator (><) returns a missing value only if either operand is missing. In this case, it returns the value of the operand that is lower in the sort order for missing values.

Examples

SAS Statements

Results

x=min(7,4);

4

x1=min(2,.,6);

2

x2=min(2, ˆ’ 3,1, ˆ’ 1);

ˆ’ 3

x3=min(0,4);

x4=min(of x1 ˆ’ x3);

ˆ’ 3

Категории