The UNIVARIATE Procedure

Summarizing a Data Distribution

Figure 1 shows a table of basic summary measures and a table of extreme observations for the loan-to-value ratios of 5,840 home mortgages. The ratios are saved as values of the variable LoanToValueRatio in a data set named HomeLoans. The following statements request a univariate analysis:

ods select BasicMeasures ExtremeObs;
proc univariate data=HomeLoans;
   var LoanToValueRatio;
run;

The ODS SELECT statement restricts the default output to the tables for basic statistical measures and extreme observations.

Figure 1: Basic Measures and Extreme Observations

The UNIVARIATE Procedure
Variable: LoanToValueRatio (Loan to Value Ratio)

Basic Statistical Measures
LocationVariability
Mean0.292512Std Deviation0.16476
Median0.248050Variance0.02715
Mode0.250000Range1.24780
  Interquartile Range0.16419

Extreme Observations
LowestHighest
ValueObsValueObs
0.065178611.139765776
0.069015731.142095791
0.0699755591.142865801
0.0702412841.170905799
0.070478741.312985811


The tables in Figure 1 show, in particular, that the average ratio is 0.2925 and the minimum and maximum ratios are 0.06518 and 1.313, respectively.

Last updated: November 06, 2022