Sashelp Data Sets

Leukemia Data Sets

The Sashelp.LeuTrain and Sashelp.LeuTest data sets provide microarray data from (Golub et al. 1999; Zou and Hastie 2005). The Sashelp.LeuTrain data set consists of 7,129 genes and 38 training samples, and the Sashelp.LeuTest data set consists of the same 7,129 genes and 34 testing samples. Among the 38 training samples, 27 are type 1 leukemia (acute lymphoblastic leukemia, coded in the data as 1) and 11 are type 2 leukemia (acute myeloid leukemia, coded in the data as –1).

The following steps display information about Sashelp.LeuTrain data set and create Figure B.14:

title 'Leukemia Training Data';
proc contents data=sashelp.LeuTrain varnum;
   ods select position;
run;

title 'The First Five Observations and 11 Variables';
proc print data=sashelp.LeuTrain(obs=5);
   var y x1-x10;
run;

title 'Leukemia Type Variable';
proc freq data=sashelp.LeuTrain;
   tables y;
run;

Figure B.14: Leukemia Training Data

The First Five Observations and 11 Variables

Obsyx1x2x3x4x5x6x7x8x9x10
11-1.46240-0.64514-0.83593-1.47040-0.91997-1.584300.71239-0.542291.050900.23649
21-0.664800.20615-0.368570.25822-0.47567-0.35497-1.11940-0.29251-0.37542-0.38760
31-0.200490.37994-2.382800.43960-1.22700-1.762200.10464-1.807500.49292-1.67000
41-0.257760.279941.83920-1.62950-1.28750-1.265100.76334-0.61645-0.31578-0.32193
51-0.56457-0.39588-0.98372-0.83741-0.414770.14834-0.03550-0.10022-0.757530.37068

Leukemia Type Variable

yFrequency PercentCumulative
Frequency
Cumulative
Percent
-11128.951128.95
12771.0538100.00


The results of the PROC CONTENTS step are not displayed. The results show that there are 7,130 variables, y and x1-x7129.

The following steps display information about Sashelp.LeuTest data set and create Figure B.15:

title 'Leukemia Test Data';
proc contents data=sashelp.LeuTest varnum;
   ods select position;
run;

title 'The First Five Observations and 11 Variables';
proc print data=sashelp.LeuTest(obs=5);
   var y x1-x10;
run;

title 'Leukemia Type Variable';
proc freq data=sashelp.LeuTest;
   tables y;
run;

Figure B.15: Leukemia Test Data

The First Five Observations and 11 Variables

Obsyx1x2x3x4x5x6x7x8x9x10
11-1.382400.062880.622521.612100.521790.11516-1.85270-0.399560.88007-0.86565
210.65192-0.354762.296301.649800.50211-0.373151.76820-1.742701.630800.60171
310.654091.413400.22593-0.067190.300150.76964-0.262120.94481-0.51884-0.60999
411.072200.019590.168750.847790.245330.796820.414420.35122-0.701771.85410
512.124801.66370-0.359861.158500.893790.56310-0.924760.56790-0.56039-2.12400

Leukemia Type Variable

yFrequency PercentCumulative
Frequency
Cumulative
Percent
-11441.181441.18
12058.8234100.00


The results of the PROC CONTENTS step are not displayed. The results show that there are 7,130 variables, y and x1-x7129.