Appendix B: Sashelp Data Sets

Fisher (1936) Iris Data

The Sashelp.Iris data set (Fisher 1936) is widely used for examples of discriminant analysis and cluster analysis. The data are measurements in millimeters of the sepal length, sepal width, petal length, and petal width of 50 iris specimens from each of three species: Iris setosa, I. versicolor, and I. virginica. The following steps display information about the Sashelp.Iris data set and create Figure 55:

title 'Fisher (1936) Iris Data';
proc contents data=sashelp.Iris varnum;
   ods select position;
run;

title 'The First Five Observations Out of 150';
proc print data=sashelp.Iris(obs=5);
run;

title 'The Iris Species Variable';
proc freq data=sashelp.Iris;
   tables species;
run;

Figure 55: Fisher (1936) Iris Data

Fisher (1936) Iris Data

Variables in Creation Order
#VariableTypeLenLabel
1SpeciesChar10Iris Species
2SepalLengthNum8Sepal Length (mm)
3SepalWidthNum8Sepal Width (mm)
4PetalLengthNum8Petal Length (mm)
5PetalWidthNum8Petal Width (mm)

The First Five Observations Out of 150

ObsSpeciesSepalLengthSepalWidthPetalLengthPetalWidth
1Setosa5033142
2Setosa4634143
3Setosa4636102
4Setosa5133175
5Setosa5535132

The Iris Species Variable

Iris Species
SpeciesFrequency PercentCumulative
Frequency
Cumulative
Percent
Setosa5033.335033.33
Versicolor5033.3310066.67
Virginica5033.33150100.00


Last updated: October 28, 2020