|
SMALLESTName:
The values will be returned in sorted order. If the requested number of smallest values is less than 1, then an error will be returned. If the requested number of smallest values is greater than the number of observations in the response variable, then the full response variable will be returned in sorted order.
where <x> is a response variable; <nval> is a number or parameter that specifies how many values to extract; <y> is a variable that contains the smallest values; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET Y = SMALLEST X NVAL
LET Y = SMALLEST X 3
let y = normal random numbers for i = 1 1 100 let nval = 5 let yout = smallest y nval set write decimals 3 print youtThe following output is returned --------------- YOUT --------------- -2.023 -1.756 -1.558 -1.483 -1.482
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 10/10/2018 |