## SAS function, RANUNI creates a flat distribution

randomx=ranuni(1);

The MEANS Procedure

Analysis Variable : randomx

N Mean Std Dev Minimum Maximum
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
3812 0.4995942 0.2896404 0.000147896 0.9997638
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

The SAS System 19:50 Wednesday, May 29, 2013 3

The UNIVARIATE Procedure

Histogram # Boxplot
0.975+***************************************** 201 |
.*************************************** 193 |
.************************************ 178 |
.*********************************** 173 |
.**************************************** 197 |
.************************************** 186 +—–+
.**************************************** 197 | |
.******************************************** 218 | |
.************************************* 182 | |
.************************************** 188 *—–*
.**************************************** 200 | + |
.************************************* 184 | |
.**************************************** 199 | |
.************************************ 177 | |
.*********************************** 174 | |
.************************************ 176 +—–+
.****************************************** 206 |
.************************************* 183 |
.**************************************** 199 |
0.025+***************************************** 201 |
—-+—-+—-+—-+—-+—-+—-+—-+—-
* may represent up to 5 counts

## SAS Count function

data one;
input val \$9.;
cards;
102102111
108881111
;

data new;
set one;
temp=count(val,’1′);
put temp=;
run;

RT