File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
By Syntax/UNIVARIATE Procedure Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ /************************************************************************************************
2+ PRINT EXTREME OBSERVATIONS
3+ This program prints a specified amount of observations with the highest and lowest values
4+ in a specified variable. It labels these observations with an identifier variable.
5+ Keywords: PROC UNIVARIATE
6+ SAS Versions: SAS 9, SAS Viya
7+ Documentation: https://documentation.sas.com/doc/en/pgmsascdc/v_066/procstat/procstat_univariate_toc.htm
8+ 1. Specify the output table ODS should display from the following PROC UNIVARIATE step.
9+ 2. PROC UNIVARIATE prints the N (here: 3) observations from the specified input
10+ (here: SASHELP.CLASS) table
11+ 3. Specify the variable based on which the highest and lowest observations are selected
12+ (here: Height).
13+ 4. A specified (here: Name) variable is used to identify these observations.
14+ ************************************************************************************************/
15+
16+ ods select ExtremeObs; /*1*/
17+ proc univariate data=sashelp .class nextrobs=3 ; /*2*/
18+ var Height; /*3*/
19+ id Name; /*4*/
20+ run ;
You can’t perform that action at this time.
0 commit comments