The following steps display information about the data set Sashelp.Fish
and create Figure B.4:
title 'Finland''s Lake Laengelmavesi Fish Catch Data'; proc contents data=sashelp.fish varnum; ods select position; run; title 'The First Five Observations Out of 159'; proc print data=sashelp.fish(obs=5); run; title 'The Fish Species Variable'; proc freq data=sashelp.fish; tables species; run;
Figure B.4: Finland’s Lake Laengelmavesi Fish Catch Data
Finland's Lake Laengelmavesi Fish Catch Data |
Variables in Creation Order | |||
---|---|---|---|
# | Variable | Type | Len |
1 | Species | Char | 9 |
2 | Weight | Num | 8 |
3 | Length1 | Num | 8 |
4 | Length2 | Num | 8 |
5 | Length3 | Num | 8 |
6 | Height | Num | 8 |
7 | Width | Num | 8 |
The First Five Observations Out of 159 |
Obs | Species | Weight | Length1 | Length2 | Length3 | Height | Width |
---|---|---|---|---|---|---|---|
1 | Bream | 242 | 23.2 | 25.4 | 30.0 | 11.5200 | 4.0200 |
2 | Bream | 290 | 24.0 | 26.3 | 31.2 | 12.4800 | 4.3056 |
3 | Bream | 340 | 23.9 | 26.5 | 31.1 | 12.3778 | 4.6961 |
4 | Bream | 363 | 26.3 | 29.0 | 33.5 | 12.7300 | 4.4555 |
5 | Bream | 430 | 26.5 | 29.0 | 34.0 | 12.4440 | 5.1340 |
The Fish Species Variable |
Species | Frequency | Percent | Cumulative Frequency |
Cumulative Percent |
---|---|---|---|---|
Bream | 35 | 22.01 | 35 | 22.01 |
Parkki | 11 | 6.92 | 46 | 28.93 |
Perch | 56 | 35.22 | 102 | 64.15 |
Pike | 17 | 10.69 | 119 | 74.84 |
Roach | 20 | 12.58 | 139 | 87.42 |
Smelt | 14 | 8.81 | 153 | 96.23 |
Whitefish | 6 | 3.77 | 159 | 100.00 |