Sie sind auf Seite 1von 196

SAS Help

Data Sets

The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Help Data Sets. Cary, NC: SAS
Institute Inc.
SAS Help Data Sets
Copyright 2013, SAS Institute Inc., Cary, NC, USA
All rights reserved. Produced in the United States of America.
For a hard-copy book: No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or
by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS
Institute Inc.
For a web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the time
you acquire this publication.
The scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher is
illegal and punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronic
piracy of copyrighted materials. Your support of others rights is appreciated.
U.S. Government License Rights; Restricted Rights: The Software and its documentation is commercial computer software
developed at private expense and is provided with RESTRICTED RIGHTS to the United States Government. Use, duplication or
disclosure of the Software by the United States Government is subject to the license terms of this Agreement pursuant to, as
applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under U.S.
federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007). If FAR 52.227-19 is applicable, this provision
serves as notice under clause (c) thereof and no other notice is required to be affixed to the Software or documentation. The
Governments rights in Software and documentation shall be only those set forth in this Agreement.
SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513-2414.
SAS provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential.
For more information about our offerings, visit support.sas.com/bookstore or call 1-800-727-3228.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in
the USA and other countries. indicates USA registration.
Other brand and product names are trademarks of their respective companies.

Gain Greater Insight into Your


SAS Software with SAS Books.

Discover all that you need on your journey to knowledge and empowerment.

support.sas.com/bookstore

for additional books and resources.


SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are
trademarks of their respective companies. 2013 SAS Institute Inc. All rights reserved. S107969US.0613

iv

Contents
Chapter 1.

Sashelp Data Sets . . . . . . . . . . . . . . . . . . . . . . . . .

vi

Chapter 1

Sashelp Data Sets


Contents
Sashelp.aacomp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Sashelp.aarfm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Sashelp.air Airline Data (Monthly: Jan49-Dec60) . . . . . . . . . . . . . . . . . . . . .

Sashelp.applianc Sales Time Series for 24 Appliances By Cycle . . . . . . . . . . . . . .

Sashelp.assocwa Current Association List . . . . . . . . . . . . . . . . . . . . . . . . .

Sashelp.baseball 1986 Baseball Data . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11

Sashelp.bmt Bone Marrow Transplant Patients . . . . . . . . . . . . . . . . . . . . . . .

13

Sashelp.buy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

Sashelp.bweight Infant Birth Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

Sashelp.cars 2004 Car Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

Sashelp.citiday Citibase Daily Indicators: Jan88-Feb92 . . . . . . . . . . . . . . . . . .

19

Sashelp.citimon Citibase Monthly Indicators: Jan80-Jan92 . . . . . . . . . . . . . . . .

20

Sashelp.citiqtr Citibase Quarterly Indicators: 80: 1-91: 4 . . . . . . . . . . . . . . . . .


Sashelp.citiwk Citibase Weekly Indicators: Dec85-Jan92 . . . . . . . . . . . . . . . . .

22
24

Sashelp.citiyr Citibase New File Format . . . . . . . . . . . . . . . . . . . . . . . . . .

25

Sashelp.class Student Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

26

Sashelp.classfit Predicted Weights With Confidence Limits . . . . . . . . . . . . . . . .

27

Sashelp.comet Comet Assay Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

28

Sashelp.company Several Hierarchical Levels of a Company . . . . . . . . . . . . . . .

29

Sashelp.demographics Data Derived from World Population Prospects: the 2004 Revision

30

Sashelp.electric Electric Power Generation and Revenue . . . . . . . . . . . . . . . . . .

33

Sashelp.eng_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

36

Sashelp.enso El Nino Southern Oscillation . . . . . . . . . . . . . . . . . . . . . . . . .

37

Sashelp.failure MOS Capacitor Failure . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

Sashelp.fish Measurements of 159 Fish Caught in Lake Laengelmavesi, Finland . . . . .

40

Sashelp.frnch_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

Sashelp.ftable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

Sashelp.gas Nitrogen Oxide Emissions from a Single Cylinder Engine . . . . . . . . . .

44

Sashelp.gcdirect Standard Street Direction Abbreviations for US Geocoding . . . . . . .

46

Sashelp.gcstate State/Province Names and Abbreviation for Geocoding . . . . . . . . . .

47

Sashelp.gctype Street Type Abbreviations for US Geocoding . . . . . . . . . . . . . . .

49

Sashelp.geoexm Primary Street Lookup Data for PROC GEOCODE (Tiger 2012) . . . .

50

Sashelp.geoexp Tertiary Street Lookup Data for PROC GEOCODE (Tiger 2012) . . . . .

52

Sashelp.geoexs Secondary Street Lookup Data for PROC GEOCODE (Tiger 2012) . . .

53

Sashelp.germ_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

2 F Chapter 1: Sashelp Data Sets

Sashelp.gisimp GISIMP: SAS/GIS Import Data Set . . . . . . . . . . . . . . . . . . . .


Sashelp.gngsmp1 Sample Chart Data for Graph-N-Go . . . . . . . . . . . . . . . . . . .
Sashelp.gngsmp2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.gnp GNP/Macro Data (Quarterly: 1960-1991) . . . . . . . . . . . . . . . . . . .
Sashelp.gridded Gridded Weight and Height . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.gulfoil Monthly Oil and Gas Production . . . . . . . . . . . . . . . . . . . . . .
Sashelp.heart Framingham Heart Study . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.holiday Holiday Data for En US and En CA Locale . . . . . . . . . . . . . . . .
Sashelp.humid Source: W. L. Donn, Meteorology, 4th Edition . . . . . . . . . . . . . . .
Sashelp.iris Fishers Iris Data (1936) . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.ital_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.ja . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.junkmail Classifying Email As Junk Or Not . . . . . . . . . . . . . . . . . . . .
Sashelp.ko . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.lake Sample 3D Data of Lake Depth . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.leutest Leukemia Data Set - Validation Data . . . . . . . . . . . . . . . . . . . .
Sashelp.leutrain Leukemia Data Set - Training Data . . . . . . . . . . . . . . . . . . . .
Sashelp.ltheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.macrs7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.margarin Margarine Purchase Data . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.mdv Sales Data and Forecast . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.mileages Flying Mileages Between Ten US Cities . . . . . . . . . . . . . . . . .
Sashelp.mon1001 M-Competition 1001 Series, Monthly . . . . . . . . . . . . . . . . . .
Sashelp.mon111 M-Competition 111 Series, Monthly . . . . . . . . . . . . . . . . . . .
Sashelp.mwelect Midwest Electrical Supply Monthly Sales By Productgroup . . . . . . .
Sashelp.nvst1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.nvst2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.nvst3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.nvst4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.nvst5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.orsales Orion Star Sports & Outdoors Sales 1999 - 2002 . . . . . . . . . . . . .
Sashelp.plfips FIPS Place Codes from USGS Geographic Names Information System
(GNIS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.port_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.prdsal2 Furniture Sales Data . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.prdsal3 Furniture Sales Data . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.prdsale Furniture Sales Data . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.pricedata Simulated Monthly Sales Data With Hierarchy of Region, Line, Product
Sashelp.proj4def . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

56
58
60
61
62
63
65
67
68
69
71
72
73
77
78
79
79
80
81
82
83
84
85
86
87
88
90
91
106
109
110
111
112
113
114
115
117
119
120
122
124
126
129

Sashelp.aacomp F 3

Sashelp.qtr1001 M-Competition 1001 Series, Quarterly . . . . . . . . . . . . . . . . . .


Sashelp.qtr111 M-Competition 111 Series, Quarterly . . . . . . . . . . . . . . . . . . .
Sashelp.rent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.retail Retail Sales (Quarterly: 1980q1-1994q2) . . . . . . . . . . . . . . . . . .
Sashelp.revhub2 Airline Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.rockpit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.shoes Fictitious Shoe Company Data . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.snacks Daily Snack Food Sales . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.span_multi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.steel Iron/Steel Exports (Yearly: 1937-1980) . . . . . . . . . . . . . . . . . . .
Sashelp.stocks Performance of Three Stocks from 1996 to 2005 . . . . . . . . . . . . . .
Sashelp.syr1001 M-Competition 1001 Series, Semiannual . . . . . . . . . . . . . . . . .
Sashelp.tgrmapc US County Names and State/County FIPS Codes . . . . . . . . . . . .
Sashelp.tgrmaps US State Names and FIPS Codes . . . . . . . . . . . . . . . . . . . . .
Sashelp.thick Coal Seam Thickness . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.timedata Time-Stamped Data . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.tourism Tourism Demand Modelling and Forecasting . . . . . . . . . . . . . . .
Sashelp.usecon Source: US BEA, "Business Statistics" . . . . . . . . . . . . . . . . . .
Sashelp.us_data Apportionment, Population Change, Population Density . . . . . . . . .
Sashelp.vbplayrs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.workers Employment (Monthly: Jan77-Jul82) . . . . . . . . . . . . . . . . . . .
Sashelp.yr1001 M-Competition 1001 Series, Annual . . . . . . . . . . . . . . . . . . . .
Sashelp.yr111 M-Competition 111 Series, Annual . . . . . . . . . . . . . . . . . . . . .
Sashelp.zh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sashelp.zipcode US Zipcodes; Source: Zipcodedownload.com Jul 2013, SAS Release 9.4
Sashelp.zipmil US Military Zipcodes-Lat/LongNA Assigned Missing . . . . . . . . . . .
Sashelp.zt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

131
135
136
137
138
140
141
143
145
146
147
148
149
150
151
152
153
154
155
160
162
163
181
184
185
187
189
190

Sashelp.aacomp
The Sashelp.aacomp data set provides advanced analytics model variable labels and error text. The following
steps display information about the data set Sashelp.aacomp and create Figure 1.1. The data set contains
1,530 observations.
title "Sashelp.aacomp";
proc contents data=sashelp.aacomp varnum;
ods select position;
run;
title "The First Five Observations Out of 1530";
proc print data=sashelp.aacomp(obs=5) heading=h noobs;
run;

4 F Chapter 1: Sashelp Data Sets

Figure 1.1 Sashelp.aacomp


Sashelp.aacomp
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

locale
key
lineno
text

Char
Char
Num
Char

5
60
4
1200

The First Five Observations Out of 1530


locale
en
en
en
en
en

key
MODEL_ASE_VLABEL
MODEL_CODEDEPENDENCY_ERROR
MODEL_CORRECTRATE_VLABEL
MODEL_CRCUT_VLABEL
MODEL_CRDEPTH_VLABEL

lineno
1
1
1
1
1

text
Average Squared Error
Unable to determine the code variable dependencies.
Overall Precision Rate
CR Cutoff
CR Sample Depth

Sashelp.aarfm F 5

Sashelp.aarfm
The following steps display information about the data set Sashelp.aarfm and create Figure 1.2. The data set
contains 56 observations.
title "Sashelp.aarfm";
proc contents data=sashelp.aarfm varnum;
ods select position;
run;
title "The First Five Observations Out of 56";
proc print data=sashelp.aarfm(obs=5) heading=h noobs;
run;

Figure 1.2 Sashelp.aarfm


Sashelp.aarfm
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

locale
key
lineno
text

Char
Char
Num
Char

5
60
4
1200

The First Five Observations Out of 56


locale
en
en
en
en
en

key
AVERAGE_PLURAL
AVERAGE_SINGULAR
CUSTOMERIDLABEL
CUSTOMER_ID_VARIABLE_NOT_FOUND
DIST_TITLE_TOTPURCHASEAMT_BY_RF

lineno
1
1
1
1
1

text
Averages
Average
Customer Identifier
%1z (%#1s) Required customer identifier variable is not specified.
Distribution of %#1s of Transaction Amounts by Recency Score and Frequency Score

6 F Chapter 1: Sashelp Data Sets

Sashelp.air Airline Data (Monthly: Jan49-Dec60)


The Sashelp.air data set provides airline data (monthly: Jan49Dec60). The following steps display
information about the data set Sashelp.air and create Figure 1.3. The data set contains 144 observations.
title "Sashelp.air --- Airline Data (Monthly: Jan49-Dec60)";
proc contents data=sashelp.air varnum;
ods select position;
run;
title "The First Five Observations Out of 144";
proc print data=sashelp.air(obs=5) heading=h noobs;
run;

Figure 1.3 Sashelp.air Airline Data (Monthly: Jan49-Dec60)


Sashelp.air --- Airline Data (Monthly: Jan49-Dec60)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AIR

Num
Num

Len

Format

8
8

MONYY.

Label

international airline travel (thousands)

The First Five Observations Out of 144


DATE

AIR

JAN49
FEB49
MAR49
APR49
MAY49

112
118
132
129
121

Sashelp.applianc Sales Time Series for 24 Appliances By Cycle F 7

Sashelp.applianc Sales Time Series for 24 Appliances By


Cycle
The Sashelp.applianc data set provides sales time series for 24 appliances by cycle. The following steps
display information about the data set Sashelp.applianc and create Figure 1.4. The data set contains 156
observations.
title "Sashelp.applianc --- Sales Time Series for 24 Appliances By Cycle";
proc contents data=sashelp.applianc varnum;
ods select position;
run;
title "The First Five Observations Out of 156";
proc print data=sashelp.applianc(obs=5) heading=h noobs;
run;

Figure 1.4 Sashelp.applianc Sales Time Series for 24 Appliances By Cycle


Sashelp.applianc --- Sales Time Series for 24 Appliances By Cycle
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

units_1
units_2
units_3
units_4
units_5
units_6
units_7
units_8
units_9
units_10
units_11
units_12
units_13
units_14
units_15
units_16
units_17
units_18
units_19
units_20
units_21
units_22
units_23
units_24
cycle

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8

Label
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,
units,

appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance
appliance

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

8 F Chapter 1: Sashelp Data Sets

Figure 1.4 continued


The First Five Observations Out of 156
units_1
1
0
0
1
1

units_2
14
14
19
22
33

units_3

units_4

units_5

units_6

units_7

units_8

units_9

1
0
0
1
1

1
1
3
7
6

2
0
6
4
4

1
1
1
1
3

1
1
1
5
5

7
6
7
7
5

1
1
1
1
1

units_10

units_11

units_12

33
32
42
51
80

20
20
27
32
49

units_18

units_19

units_20

units_21

units_22

units_23

units_24

cycle

1
1
3
7
7

1
1
1
1
1

1
1
1
1
1

1
1
1
1
1

1
1
0
0
1

1
0
0
1
1

1
1
1
1
1

1
2
3
4
5

1
1
1
5
5

units_13
8
8
10
12
19

units_14
1
0
0
1
1

units_15
1
0
1
1
1

units_16

units_17

1
2
3
9
9

1
1
1
5
5

Sashelp.assocwa Current Association List F 9

Sashelp.assocwa Current Association List


The Sashelp.assocwa data set provides an association list. The following steps display information about the
data set Sashelp.assocwa and create Figure 1.5. The data set contains 17,459 observations.
title "Sashelp.assocwa --- Current Association List";
proc contents data=sashelp.assocwa varnum;
ods select position;
run;
title "The First Five Observations Out of 17459";
proc print data=sashelp.assocwa(obs=5) heading=h noobs;
run;

Figure 1.5 Sashelp.assocwa Current Association List


Sashelp.assocwa --- Current Association List
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10

DELPRED
DELSUCC
PREDCLAS
PREDROLE
SUCCCLAS
SUCCROLE
DELPREDC
DELSUCCC
VERSION
_LOADTM

Num
Num
Char
Char
Char
Char
Num
Num
Num
Num

8
8
20
40
20
40
8
8
8
8

Format

Informat

Label

DATETIME20.

Delete Predecessor when delete successor


Delete Successor when delete predecessor
Predecessor Object Class
Predecessor Role Name
Successor Object Class
Successor Role Name
Delete Predecessor when cascade delete
Delete Successor when cascading delete
Version number of association
DateTime Stamp of when row was loaded

1.
1.
$20.
$40.
$20.
$40.
1.
1.
DATETIME20.

10 F Chapter 1: Sashelp Data Sets

Figure 1.5 continued


The First Five Observations Out of 17459
DELPRED

DELSUCC

PREDCLAS

PREDROLE

0
0
0
0
0

1
1
1
1
1

COLUMN
CURRCOL
DATACOL
OLAPCOL
OLTPCOL

ANALYSIS
ANALYSIS
ANALYSIS
ANALYSIS
ANALYSIS

SUCCCLAS

SUCCROLE

SUMMCOL
SUMMCOL
SUMMCOL
SUMMCOL
SUMMCOL

STAT
STAT
STAT
STAT
STAT

DELPREDC

DELSUCCC

VERSION

0
0
0
0
0

1
1
1
1
1

1.1
1.1
1.1
1.1
1.1

_LOADTM
03FEB2000:11:22:00
03FEB2000:11:22:00
03FEB2000:11:22:00
03FEB2000:11:22:00
03FEB2000:11:22:00

Sashelp.baseball 1986 Baseball Data F 11

Sashelp.baseball 1986 Baseball Data


The Sashelp.Baseball data set contains salary and performance information for Major League Baseball
players (excluding pitchers) who played at least one game in both the 1986 and 1987 seasons. The salaries
are for the 1987 season, and the performance measures are from the 1986 season. The following steps
display information about the data set Sashelp.baseball and create Figure 1.6. The data set contains 322
observations.
title "Sashelp.baseball --- 1986 Baseball Data";
proc contents data=sashelp.baseball varnum;
ods select position;
run;
title "The First Five Observations Out of 322";
proc print data=sashelp.baseball(obs=5) heading=h noobs;
run;

Figure 1.6 Sashelp.baseball 1986 Baseball Data


Sashelp.baseball --- 1986 Baseball Data
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

Variable

Type

Len

Name
Team
nAtBat
nHits
nHome
nRuns
nRBI
nBB
YrMajor
CrAtBat
CrHits
CrHome
CrRuns
CrRbi
CrBB
League
Division
Position
nOuts
nAssts
nError
Salary
Div
logSalary

Char
Char
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Char
Char
Char
Num
Num
Num
Num
Char
Num

18
14
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
16
8

Label
Player's Name
Team at the End of 1986
Times at Bat in 1986
Hits in 1986
Home Runs in 1986
Runs in 1986
RBIs in 1986
Walks in 1986
Years in the Major Leagues
Career Times at Bat
Career Hits
Career Home Runs
Career Runs
Career RBIs
Career Walks
League at the End of 1986
Division at the End of 1986
Position(s) in 1986
Put Outs in 1986
Assists in 1986
Errors in 1986
1987 Salary in $ Thousands
League and Division
Log Salary

12 F Chapter 1: Sashelp Data Sets

Figure 1.6 continued


The First Five Observations Out of 322

Name

Team

Allanson, Andy
Ashby, Alan
Davis, Alan
Dawson, Andre
Galarraga, Andres

Cr
Cr
Runs Rbi CrBB
30 29
321 414
224 266
828 838
48 46

n
At
n
n
n
Yr
Bat Hits Home Runs nRBI nBB Major

14
375
263
354
33

Cleveland
Houston
Seattle
Montreal
Montreal

League
American
National
American
National
National

293
315
479
496
321

66
81
130
141
87

1
7
18
20
10

30
24
66
65
39

29
38
72
78
42

14
39
76
37
30

1
14
3
11
2

Cr
At
Cr
Cr
Bat Hits Home
293
66
3449 835
1624 457
5628 1575
396 101

n
n
n
Division Position Outs Assts Error Salary Div
East
West
West
East
East

C
C
1B
RF
1B

446
632
880
200
805

33
43
82
11
40

20
10
14
3
4

.
475.0
480.0
500.0
91.5

AE
NW
AW
NE
NE

1
69
63
225
12

log
Salary
.
6.16331
6.17379
6.21461
4.51634

Sashelp.bmt Bone Marrow Transplant Patients F 13

Sashelp.bmt Bone Marrow Transplant Patients


The Sashelp.BMT (bone marrow transplant) data set is used to illustrate survival analysis methods. At the
time of transplant, each patient is classified into one of three risk categories: ALL (acute lymphoblastic
leukemia), AML-Low Risk (acute myelocytic leukemia, low risk), and AML-High Risk. The endpoint
of interest is the disease-free survival time, which is the time in days to death, relapse, or the end of the
study. In this data set, the variable Group represents the patients risk category, the variable T represents the
disease-free survival time, and the variable Status is the censoring indicator such that the value 1 indicates an
event time and the value 0 indicates a censored time. The following steps display information about the data
set Sashelp.bmt and create Figure 1.7. The data set contains 137 observations.
title "Sashelp.bmt --- Bone Marrow Transplant Patients";
proc contents data=sashelp.bmt varnum;
ods select position;
run;
title "The First Five Observations Out of 137";
proc print data=sashelp.bmt(obs=5) heading=h noobs;
run;

title "The Group Variable";


proc freq data=sashelp.bmt;
tables Group;
run;

Figure 1.7 Sashelp.bmt Bone Marrow Transplant Patients


Sashelp.bmt --- Bone Marrow Transplant Patients
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3

Group
T
Status

Char
Num
Num

13
8
8

Label
Disease Group
Disease-Free Survival Time
Event Indictor: 1=Event 0=Censored

The First Five Observations Out of 137


Group

ALL
ALL
ALL
ALL
ALL

2081
1602
1496
1462
1433

Status
0
0
0
0
0

14 F Chapter 1: Sashelp Data Sets

Figure 1.7 continued


The Group Variable
The FREQ Procedure
Disease Group
Cumulative
Cumulative
Group
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------------ALL
38
27.74
38
27.74
AML-High Risk
45
32.85
83
60.58
AML-Low Risk
54
39.42
137
100.00

Sashelp.buy F 15

Sashelp.buy
The Sashelp.buy data set provides yearly date and amount for purchases. The following steps display
information about the data set Sashelp.buy and create Figure 1.8. The data set contains 11 observations.
title "Sashelp.buy";
proc contents data=sashelp.buy varnum;
ods select position;
run;
title "The First Five Observations Out of 11";
proc print data=sashelp.buy(obs=5) heading=h noobs;
run;

Figure 1.8 Sashelp.buy


Sashelp.buy
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 11


DATE

AMOUNT

01JAN1996
01JAN1997
01JAN1998
01JAN1999
01JAN2000

-110000
-1000
-1000
-51000
-2000

16 F Chapter 1: Sashelp Data Sets

Sashelp.bweight Infant Birth Weight


The Sashelp.BWeight data set provides 1997 birth weight data from National Center for Health Statistics.
The data record live, singleton births to mothers between the ages of 18 and 45 in the United States who were
classified as black or white. The following steps display information about the data set Sashelp.bweight and
create Figure 1.9. The data set contains 50,000 observations.
title "Sashelp.bweight --- Infant Birth Weight";
proc contents data=sashelp.bweight varnum;
ods select position;
run;
title "The First Five Observations Out of 50000";
proc print data=sashelp.bweight(obs=5) heading=h noobs;
run;

Figure 1.9 Sashelp.bweight Infant Birth Weight


Sashelp.bweight --- Infant Birth Weight
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10

Variable

Type

Weight
Black
Married
Boy
MomAge
MomSmoke
CigsPerDay
MomWtGain
Visit
MomEdLevel

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
8
8
8
8
8
8
8
8
8
8

Label
Infant Birth Weight
Black Mother
Married Mother
Baby Boy
Mother's Age
Smoking Mother
Cigarettes Per Day
Mother's Pregnancy Weight Gain
Prenatal Visit
Mother's Education Level

The First Five Observations Out of 50000

Weight

Black

Married

Boy

Mom
Age

4111
3997
3572
1956
3515

0
0
0
0
0

1
1
1
1
1

1
0
1
1
1

-3
1
0
-1
-6

Mom
Smoke
0
0
0
0
0

Cigs
PerDay
0
0
0
0
0

Mom
Wt
Gain

Visit

Mom
Ed
Level

-16
2
-3
-5
-20

1
3
3
3
3

0
2
0
2
0

Sashelp.cars 2004 Car Data F 17

Sashelp.cars 2004 Car Data


The Sashelp.cars data set provides the 2004 car data. The following steps display information about the data
set Sashelp.cars and create Figure 1.10. The data set contains 428 observations.
title "Sashelp.cars --- 2004 Car Data";
proc contents data=sashelp.cars varnum;
ods select position;
run;
title "The First Five Observations Out of 428";
proc print data=sashelp.cars(obs=5) heading=h noobs;
run;

title "The Type Variable";


proc freq data=sashelp.cars;
tables Type;
run;

Figure 1.10 Sashelp.cars 2004 Car Data


Sashelp.cars --- 2004 Car Data
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Variable

Type

Len

Make
Model
Type
Origin
DriveTrain
MSRP
Invoice
EngineSize
Cylinders
Horsepower
MPG_City
MPG_Highway
Weight
Wheelbase
Length

Char
Char
Char
Char
Char
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

13
40
8
6
5
8
8
8
8
8
8
8
8
8
8

Format

Label

DOLLAR8.
DOLLAR8.
Engine Size (L)

MPG (City)
MPG (Highway)
Weight (LBS)
Wheelbase (IN)
Length (IN)

18 F Chapter 1: Sashelp Data Sets

Figure 1.10 continued


The First Five Observations Out of 428

Make

Model

Type

Origin

Drive
Train

MSRP

Invoice

Engine
Size

Acura
Acura
Acura
Acura
Acura

MDX
RSX Type S 2dr
TSX 4dr
TL 4dr
3.5 RL 4dr

SUV
Sedan
Sedan
Sedan
Sedan

Asia
Asia
Asia
Asia
Asia

All
Front
Front
Front
Front

$36,945
$23,820
$26,990
$33,195
$43,755

$33,337
$21,761
$24,647
$30,299
$39,014

3.5
2.0
2.4
3.2
3.5

Cylinders

Horsepower

MPG_City

MPG_
Highway

Weight

Wheelbase

Length

6
4
4
6
6

265
200
200
270
225

17
24
22
20
18

23
31
29
28
24

4451
2778
3230
3575
3880

106
101
105
108
115

189
172
183
186
197

The Type Variable


The FREQ Procedure
Cumulative
Cumulative
Type
Frequency
Percent
Frequency
Percent
----------------------------------------------------------Hybrid
3
0.70
3
0.70
SUV
60
14.02
63
14.72
Sedan
262
61.21
325
75.93
Sports
49
11.45
374
87.38
Truck
24
5.61
398
92.99
Wagon
30
7.01
428
100.00

Sashelp.citiday Citibase Daily Indicators: Jan88-Feb92 F 19

Sashelp.citiday Citibase Daily Indicators: Jan88-Feb92


The Sashelp.citiday data set provides Citibase daily indicators: Jan88Feb92. The following steps display information about the data set Sashelp.citiday and create Figure 1.11. The data set contains 1,069
observations.
title "Sashelp.citiday --- Citibase Daily Indicators: Jan88-Feb92";
proc contents data=sashelp.citiday varnum;
ods select position;
run;
title "The First Five Observations Out of 1069";
proc print data=sashelp.citiday(obs=5) heading=h noobs;
run;

Figure 1.11 Sashelp.citiday Citibase Daily Indicators: Jan88-Feb92


Sashelp.citiday --- Citibase Daily Indicators: Jan88-Feb92
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5
6
7
8
9
10
11

DATE
SNYDJCM
SNYSECM
DSIUSWIL
DFXWCAN
DFXWUK90
DSIUKAS
DSIJPND
DCP07
DCD1M
DTBD3M

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len

Format

Label

7
8
8
8
8
8
8
8
8
8
8

DATE9.

Date of Observation
STOCK MKT INDEX:NY DOW JONES COMPOSITE,
STOCK MKT INDEX:NYSE COMPOSITE, (WSJ)
STOCK MKT INDEX:WILSHIRE 500, (WSJ)
FOREIGN EXCH RATE WSJ:CANADA,CANADIAN $/
FOREIGN EXCH RATE WSJ:U.K.,CENTS/POUND(9
STOCK MKT INDEX:U.K. - ALL SHARES
STOCK MKT INDEX:JAPAN - NIKKEI-DOW
7 DAY COMMERCIAL PAPER RATE, SHORT-TERM
INT.RATE:1MO CERTIFICATES OF DEPOSIT, SH
INT.RATE:3MO T-BILL, DISCOUNT YIELD (FRB

The First Five Observations Out of 1069


DATE SNYDJCM SNYSECM DSIUSWIL DFXWCAN DFXWUK90 DSIUKAS
01JAN1988
04JAN1988
05JAN1988
06JAN1988
07JAN1988

.
740.200
747.380
750.400
757.040

.
142.900
144.540
144.820
145.890

.
1.29630
2494.93 .
2526.99 .
2534.49 1.28920
2553.39 1.28700

186.950
.
.
180.250
179.930

886.500
886.500
908.210
908.210
908.490

DSIJPND DCP07
21217.04
21217.04
21575.28
22790.50
22792.13

.
.
.
.
.

DCD1M

DTBD3M

.
6.89000
6.85000
6.87000
6.88000

.
5.88000
5.93000
5.84000
5.78000

20 F Chapter 1: Sashelp Data Sets

Sashelp.citimon Citibase Monthly Indicators: Jan80-Jan92


The Sashelp.citimon data set provides Citibase monthly indicators: Jan80Jan92. The following steps display
information about the data set Sashelp.citimon and create Figure 1.12. The data set contains 145 observations.
title "Sashelp.citimon --- Citibase Monthly Indicators: Jan80-Jan92";
proc contents data=sashelp.citimon varnum;
ods select position;
run;
title "The First Five Observations Out of 145";
proc print data=sashelp.citimon(obs=5) heading=h noobs;
run;

Figure 1.12 Sashelp.citimon Citibase Monthly Indicators: Jan80-Jan92


Sashelp.citimon --- Citibase Monthly Indicators: Jan80-Jan92
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Variable

Type

DATE
CCIUAC
CCIUTC
CONB
CONQ
EEC
EEGP
EXVUS
FM1
FM1D82
FSPCAP
FSPCOM
FSPCON
IP
LHUR
LUINC
PW
RCARD
RTRR

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
7
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8

Format

Label

MONYY7.

Date of Observation
CONSUMER INSTAL CR OUTST'G: AUTOMOBILE,C
CONSUMER INSTAL CR OUTST'G: TOTAL, COM'L
CONSTRUCT.PUT IN PLACE: COMM'L & INDUSTR
CONSTRUCT.PUT IN PLACE: TOTAL PUBLIC, (M
ENERGY CONSUM:TOTAL(QUADRILLION BTU)
GASOLINE:RETAIL PRICE, ALL TYPES (CTS/GA
WEIGHTED-AVERAGE EXCHANGE VALUE OF U.S.D
MONEY STOCK: M1(CURR,TRAV.CKS,DEM DEP,OT
MONEY STOCK: M-1 IN 1982$ (BIL$,SA)(BCD
S&P'S COMMON STOCK PRICE INDEX: CAPITAL
S&P'S COMMON STOCK PRICE INDEX: COMPOSIT
S&P'S COMMON STOCK PRICE INDEX: CONSUMER
INDUSTRIAL PRODUCTION: TOTAL INDEX (1987
UNEMPLOYMENT RATE: ALL WORKERS, 16 YEARS
AVG WKLY INITIAL CLAIMS,STATE UNEMPLOY.I
PRODUCER PRICE INDEX: ALL COMMODITIES (8
RETAIL SALES: NEW PASSENGER CARS, DOMEST
RETAIL SALES: TOTAL (MIL$,SA)

Sashelp.citimon Citibase Monthly Indicators: Jan80-Jan92 F 21

Figure 1.12 continued


The First Five Observations Out of 145
DATE

CCIUAC

CCIUTC

CONB

CONQ

EEC

EEGP

EXVUS

FM1

FM1D82

JAN1980
FEB1980
MAR1980
APR1980
MAY1980

67166
67119
66786
65837
65035

153636
153308
152347
150937
149238

48579
47759
46705
45835
46819

66820
64049
64831
63913
64598

7.40300
6.96200
6.84800
5.98600
5.83700

111.000
118.600
123.000
124.200
124.400

85.5200
86.3700
90.2600
91.0900
86.9600

386.100
389.800
389.300
383.700
383.200

477.800
476.500
468.500
457.300
452.400

RCARD

RTRR

FSPCAP

FSPCOM

FSPCON

126.680
131.270
116.200
110.200
113.460

110.870
115.340
104.690
102.970
107.690

85.0900
83.1400
75.5000
76.9300
82.8100

IP
85.9000
86.2000
86.2000
84.5000
82.5000

LHUR
6.30000
6.30000
6.30000
6.90000
7.50000

LUINC
416
397
438
532
616

PW
85.2000
86.9000
87.5000
87.8000
88.3000

8.34000
7.86000
7.14000
5.92000
5.32000

79407
78787
77685
76658
76613

22 F Chapter 1: Sashelp Data Sets

Sashelp.citiqtr Citibase Quarterly Indicators: 80: 1-91: 4


The Sashelp.citiqtr data set provides Citibase quarterly indicators: Jan80Apr91. The following steps display
information about the data set Sashelp.citiqtr and create Figure 1.13. The data set contains 48 observations.
title "Sashelp.citiqtr --- Citibase Quarterly Indicators: 80: 1-91: 4";
proc contents data=sashelp.citiqtr varnum;
ods select position;
run;
title "The First Five Observations Out of 48";
proc print data=sashelp.citiqtr(obs=5) heading=h noobs;
run;

Figure 1.13 Sashelp.citiqtr Citibase Quarterly Indicators: 80: 1-91: 4


Sashelp.citiqtr --- Citibase Quarterly Indicators: 80: 1-91: 4
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Variable

Type

DATE
BPB
BPCR
GC
GCQ
GCD
GCDQ
GD
GDP
GDPQ
GNP
GNPQ
GY
GYD
GYDQ

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len

Format

Label

7
8
8
8
8
8
8
8
8
8
8
8
8
8
8

YYQC6.

Date of Observation
BAL OF P'MENT:BALANCE ON MERCHANDISE TRA
BAL OF P'MENT:BAL ON CURRENT A/C(INC REI
PERSONAL CONSUMPTION EXPENDITURES
PERSONAL CONSUMPTION EXPENDITURES (BIL.
PERSONAL CONS. EXPENDITURES, DURABLE GOO
PERSONAL CONSUMPTION EXPENDITURES:DUR GO
IMPLICIT PR DEFLATOR: GROSS NATIONAL PRO
GROSS DOMESTIC PRODUCT (BIL.$,SAAR)(T.1.
GROSS DOMESTIC PRODUCT (BIL. 1987$)(T.1.
GROSS NATIONAL PRODUCT, TOTAL
GROSS NATIONAL PRODUCT (BILL.1987$)(T1.1
NATIONAL INCOME, TOTAL
PERSN'L INCOME: DISPOSABLE PERSONAL INCO
DISPOSABLE PERSONAL INCOME: TOTAL (BIL.8

Sashelp.citiqtr Citibase Quarterly Indicators: 80: 1-91: 4 F 23

Figure 1.13 continued


The First Five Observations Out of 48
DATE
1980:1
1980:2
1980:3
1980:4
1981:1

BPB

BPCR

GC

GCQ

GCD

GCDQ

GD

-10575
-6253
-3856
-4797
-5663

-2785
-1197
3396
1704
2450

1701.50
1704.90
1762.30
1823.60
1876.00

2464.60
2414.20
2440.30
2469.20
2475.50

218.700
198.200
211.300
221.800
230.800

279.700
246.300
258.400
266.600
274.400

69.2000
70.8000
72.5000
74.4000
76.5000

GDP

GDPQ

GNP

GNPQ

GY

GYD

GYDQ

2650.10
2643.90
2705.30
2832.90
2953.50

3830.80
3732.60
3733.50
3808.50
3860.50

2687.70
2679.40
2739.80
2861.50
2985.50

3884.60
3782.30
3780.50
3846.20
3901.60

2163.40
2136.80
2189.70
2302.90
2375.70

1893.70
1901.10
1966.10
2050.90
2106.50

2742.90
2692.00
2722.50
2777.00
2779.70

24 F Chapter 1: Sashelp Data Sets

Sashelp.citiwk Citibase Weekly Indicators: Dec85-Jan92


The Sashelp.citiwk data set provides Citibase weekly indicators: Dec85Jan92. The following steps display
information about the data set Sashelp.citiwk and create Figure 1.14. The data set contains 319 observations.
title "Sashelp.citiwk --- Citibase Weekly Indicators: Dec85-Jan92";
proc contents data=sashelp.citiwk varnum;
ods select position;
run;
title "The First Five Observations Out of 319";
proc print data=sashelp.citiwk(obs=5) heading=h noobs;
run;

Figure 1.14 Sashelp.citiwk Citibase Weekly Indicators: Dec85-Jan92


Sashelp.citiwk --- Citibase Weekly Indicators: Dec85-Jan92
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10

Variable

Type

DATE
MF3505
TCJ
WSPCA
WSPUA
WSPIA
WSPGLT
HFBI20
FF142B
FCPOIL

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
7
8
8
8
8
8
8
8
8
8

Format

Label

WEEKDATX16.

Date of Observation
MONEY STOCK:M1(CURRENCY+DEMAND DEP+OTHER
INDUSTRIAL MATERIALS PRICE INDEX, 18 COM
STANDARD & POOR'S WEEKLY BOND YIELD: COM
STANDARD & POOR'S WEEKLY BOND YIELD: UTI
STANDARD & POOR'S WEEKLY BOND YIELD:INDU
STANDARD & POOR;S WEEKLY BOND YIELD: GOV
BOND BUYERS INDEX: 20 BOND GENERAL OBLIG
BOND YIELD:"A" UTILITY(RECENTLY OFFERED)
PETROLEUM, REFINED OIL PRICES: FUEL OIL,

The First Five Observations Out of 319


DATE
Sun, 22
Sun, 29
Sun, 5
Sun, 12
Sun, 19

Dec
Dec
Jan
Jan
Jan

85
85
86
86
86

MF3505
.
620.800
620.900
620.500
622.200

TCJ

WSPCA

WSPUA

WSPIA

.
.
.
.
.

10.4340
10.4900
10.5700
10.5800
10.2600

10.5380
10.4200
10.6900
10.5800
10.4200

10.3290
10.5600
10.4500
10.5800
10.1000

WSPGLT

HFBI20

FF142B

FCPOIL

9.24000
9.32000
9.51000
9.50000
9.30000

8.33000
8.04000
8.10000
8.05000
7.86000

10.5900
10.8300
10.7500
10.8200
10.6700

0.76750
0.73250
0.64000
0.58250
0.57250

Sashelp.citiyr Citibase New File Format F 25

Sashelp.citiyr Citibase New File Format


The Sashelp.citiyr data set provides Citibase new file format. The following steps display information about
the data set Sashelp.citiyr and create Figure 1.15. The data set contains 10 observations.
title "Sashelp.citiyr --- Citibase New File Format";
proc contents data=sashelp.citiyr varnum;
ods select position;
run;
title "The First Five Observations Out of 10";
proc print data=sashelp.citiyr(obs=5) heading=h noobs;
run;

Figure 1.15 Sashelp.citiyr Citibase New File Format


Sashelp.citiyr --- Citibase New File Format
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5
6

DATE
PAN
PAN17
PAN18
PANF
PANM

Num
Num
Num
Num
Num
Num

Len

Format

Label

6
7
7
7
7
7

YEAR4.

Date of Observation
POPULATION EST.: ALL AGES, INC.ARMED F.
POPULATION EST.: 16 YRS AND OVER,INC ARM
POPULATION EST.: 18-64 YRS,INC.ARMED F.O
POPULATION EST.: FEMALES,ALL AGES,INC.AR
POPULATION EST.: MALES, ALL AGES, INC.AR

The First Five Observations Out of 10


DATE

PAN

PAN17

PAN18

PANF

PANM

1980
1981
1982
1983
1984

227757
230138
232520
234799
237001

172456
175017
177346
179480
181514

138358
140618
142740
144591
146257

116869
118074
119275
120414
121507

110888
112064
113245
114385
115494

26 F Chapter 1: Sashelp Data Sets

Sashelp.class Student Data


The Sashelp.Class data set provides information about a small fictitious class of students. Variables include
Sex, Age, Height, and Weight. This data set is frequently used in SAS documentation to illustrate basic SAS
coding. The following steps display information about the data set Sashelp.class and create Figure 1.16. The
data set contains 19 observations.
title "Sashelp.class --- Student Data";
proc contents data=sashelp.class varnum;
ods select position;
run;
title "The First Five Observations Out of 19";
proc print data=sashelp.class(obs=5) heading=h noobs;
run;

Figure 1.16 Sashelp.class Student Data


Sashelp.class --- Student Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5

Name
Sex
Age
Height
Weight

Char
Char
Num
Num
Num

8
1
8
8
8

The First Five Observations Out of 19


Name

Sex

Age

Height

Weight

Alfred
Alice
Barbara
Carol
Henry

M
F
F
F
M

14
13
13
14
14

69.0
56.5
65.3
62.8
63.5

112.5
84.0
98.0
102.5
102.5

Sashelp.classfit Predicted Weights With Confidence Limits F 27

Sashelp.classfit Predicted Weights With Confidence Limits


The Sashelp.classfit data set provides predicted weights with confidence limits. The following steps display
information about the data set Sashelp.classfit and create Figure 1.17. The data set contains 19 observations.
title "Sashelp.classfit --- Predicted Weights With Confidence Limits";
proc contents data=sashelp.classfit varnum;
ods select position;
run;
title "The First Five Observations Out of 19";
proc print data=sashelp.classfit(obs=5) heading=h noobs;
run;

Figure 1.17 Sashelp.classfit Predicted Weights With Confidence Limits


Sashelp.classfit --- Predicted Weights With Confidence Limits
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10

Variable

Type

Len

Name
Sex
Age
Height
Weight
predict
lowermean
uppermean
lower
upper

Char
Char
Num
Num
Num
Num
Num
Num
Num
Num

8
1
8
8
8
8
8
8
8
8

Label

Predicted Value of
Lower Bound of 95%
Upper Bound of 95%
Lower Bound of 95%
Upper Bound of 95%

Weight
C.I. for Mean
C.I. for Mean
C.I.(Individual Pred)
C.I.(Individual Pred)

The First Five Observations Out of 19


Name
Joyce
Louise
Alice
James
Thomas

Sex Age Height Weight predict lowermean uppermean


F
F
F
M
M

11
12
13
12
11

51.3
56.3
56.5
57.3
57.5

50.5
77.0
84.0
83.0
85.0

56.9933
76.4885
77.2683
80.3875
81.1673

43.8044
67.9601
68.9066
72.6671
73.6000

70.1823
85.0169
85.6300
88.1079
88.7346

lower

upper

29.8835
51.3145
52.1503
55.4757
56.3025

84.103
101.662
102.386
105.299
106.032

28 F Chapter 1: Sashelp Data Sets

Sashelp.comet Comet Assay Data


The Sashelp.Comet data set provides information from the following experiment. Twenty-four male rats were
divided into four groups. Three groups received a daily oral dose of a 1,2-dimethylhydrazine dihydrochloride
in three dose levels (low, medium, and high, respectively); the fourth group was a control group. Three
additional animals received a positive control. Cell suspensions for each animal were scored for DNA damage
by using a comet assay. The following steps display information about the data set Sashelp.comet and create
Figure 1.18. The data set contains 4,050 observations.
title "Sashelp.comet --- Comet Assay Data";
proc contents data=sashelp.comet varnum;
ods select position;
run;
title "The First Five Observations Out of 4050";
proc print data=sashelp.comet(obs=5) heading=h noobs;
run;

Figure 1.18 Sashelp.comet Comet Assay Data


Sashelp.comet --- Comet Assay Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4

Dose
Rat
Sample
Length

Num
Num
Num
Num

Len
8
8
8
8

Label
1,2 Dimethylhydrazine dihydrochloride Dose Level
Rat Index
Slide Index of Grouped Cells from a Rat
Tail Length of the Comet

The First Five Observations Out of 4050


Dose
0
0
0
0
0

Rat
1
1
1
1
1

Sample
1
1
1
1
1

Length
15.3527
16.1826
14.9378
12.4481
12.8631

Sashelp.company Several Hierarchical Levels of a Company F 29

Sashelp.company Several Hierarchical Levels of a


Company
The Sashelp.company data set provides several hierarchical levels of a company. The following steps
display information about the data set Sashelp.company and create Figure 1.19. The data set contains 48
observations.
title "Sashelp.company --- Several Hierarchical Levels of a Company";
proc contents data=sashelp.company varnum;
ods select position;
run;
title "The First Five Observations Out of 48";
proc print data=sashelp.company(obs=5) heading=h noobs;
run;

Figure 1.19 Sashelp.company Several Hierarchical Levels of a Company


Sashelp.company --- Several Hierarchical Levels of a Company
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

LEVEL2
LEVEL1
LEVEL5
DEPTHEAD
LEVEL3
LEVEL4
JOB1
N

Char
Char
Char
Char
Char
Char
Char
Num

13
16
30
15
20
30
15
8

The First Five Observations Out of 48


LEVEL2
TOKYO
TOKYO
TOKYO
LONDON
TOKYO

LEVEL1
International
International
International
International
International

LEVEL5
Ai
Ai
Ai
Ai
Ai

So Suumi
Steffen Graff
Karin Schmidt
Anne Bauer
Barbara Bial

DEPTHEAD LEVEL3
1
2
2
1
2

ADMIN
ADMIN
ADMIN
ADMIN
ADMIN

LEVEL4
CONTRACTS
CONTRACTS
FINANCE
PERSONNEL
PERSONNEL

JOB1

MANAGER
ASSISTANT
ACCOUNTANT
MANAGER
ADMIN

1
1
1
1
1

30 F Chapter 1: Sashelp Data Sets

Sashelp.demographics Data Derived from World Population


Prospects: the 2004 Revision
The Sashelp.demographics data set provides the 2004 revision of data derived from world population
prospects. The following steps display information about the data set Sashelp.demographics and create
Figure 1.20. The data set contains 197 observations.
title "Sashelp.demographics --- Data Derived from World Population Prospects: the 2004"
" Revision";
proc contents data=sashelp.demographics varnum;
ods select position;
run;
title "The First Five Observations Out of 197";
proc print data=sashelp.demographics(obs=5) heading=h noobs;
run;

title "The region Variable";


proc freq data=sashelp.demographics;
tables region;
run;

Sashelp.demographics Data Derived from World Population Prospects: the 2004 Revision F 31

Figure 1.20 Sashelp.demographics Data Derived from World Population Prospects: the 2004 Revision
Sashelp.demographics --- Data Derived from World Population Prospects: the 2004 Revision
The CONTENTS Procedure
Variables in Creation Order
# Variable

Type Len Format

1
2
3
4
5
6
7
8
9
10
11

CONT
ID
ISO
NAME
ISONAME
region
pop
popAGR
popUrban
totalFR
Adolescent
FPpct
12 Adolescent
FPyear
13 Adult
Literacypct
14 MaleSchoolpct

Num
Num
Num
Char
Char
Char
Num
Num
Num
Num
Num

15 Female
Schoolpct
16 GNI
17 PopPovertypct

Num

8
8
8
45
45
6
8
8
8
8
8

Label

Numeric Rep. for Continent


GLC Country ID Number
Z3.
ISO Country Number: 900+ Undefined
GLC Country Name
ISO Name for Country
Region
COMMA15.
Population (2005)
PERCENTN9.2 Population Annual Growth Rate Percentage (1995-2005)
PERCENTN9.2 Population in Urban Areas Percentage (2005)
Total Fertility Rate (per woman 2004)
PERCENTN9.2 Adolescent Fertility Proportion Percentage

Num

Num

8 PERCENTN9.2 Adult Literacy Rate Percentage (2000-2004)

Num

8 PERCENTN9.2 Net Primary School Enrollment Ratio


- Male Percentage (1998-2004)
8 PERCENTN9.2 Net Primary School Enrollment Ratio
- Female Percentage (1998-2004)
8
Gross National Income per Capita (PPP Int.$ 2004)
8 PERCENTN9.2 Population Living Below the Poverty
Line (% with <$1 a day)
8
Population Living Below the Poverty Line (Year)

Num
Num

18 PopPovertyYear Num

Adolescent Fertility Proportion Year

The First Five Observations Out of 197

CONT

ID

ISO

NAME

ISONAME

91
91
91
91
91

180
227
260
295
300

044
084
124
188
192

BAHAMAS
BELIZE
CANADA
COSTA RICA
CUBA

BAHAMAS
BELIZE
CANADA
COSTA RICA
CUBA

region
AMR
AMR
AMR
AMR
AMR

pop
323,063
269,736
32,268,243
4,327,228
11,269,400

popAGR

popUrban

total
FR

1.34%
2.14%
0.87%
2.04%
0.34%

90.00%
48.60%
81.10%
61.70%
76.00%

2.3
3.1
1.5
2.2
1.6

Adolescent
FPpct

Adolescent
FPyear

Adult
Literacypct

Male
Schoolpct

Female
Schoolpct

GNI

.
12.50%
6.50%
17.40%
16.00%

.
1998
1997
1999
2000

.
76.90%
.
95.80%
99.80%

85.00%
98.00%
100.00%
90.00%
96.00%

88.00%
100.00%
100.00%
91.00%
95.00%

16140
6510
30660
9530
.

Pop
Povertypct
.
.
.
2.00%
.

Pop
Poverty
Year
.
.
.
2000
.

32 F Chapter 1: Sashelp Data Sets

Figure 1.20 continued


The region Variable
The FREQ Procedure
Region
Cumulative
Cumulative
region
Frequency
Percent
Frequency
Percent
----------------------------------------------------------AFR
46
23.35
46
23.35
AMR
35
17.77
81
41.12
EMR
21
10.66
102
51.78
EUR
55
27.92
157
79.70
SEAR
11
5.58
168
85.28
WPR
29
14.72
197
100.00

Sashelp.electric Electric Power Generation and Revenue F 33

Sashelp.electric Electric Power Generation and Revenue


The Sashelp.electric data set provides electric power generation and revenue. The following steps display
information about the data set Sashelp.electric and create Figure 1.21. The data set contains 48 observations.
title "Sashelp.electric --- Electric Power Generation and Revenue";
proc contents data=sashelp.electric varnum;
ods select position;
run;
title "The First Five Observations Out of 48";
proc print data=sashelp.electric(obs=5) heading=h noobs;
run;

title "The Customer Variable";


proc freq data=sashelp.electric;
tables Customer;
run;

Figure 1.21 Sashelp.electric Electric Power Generation and Revenue


Sashelp.electric --- Electric Power Generation and Revenue
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Variable

Type

Len

Customer
Revenue
Year
RevTip
AllPower
AllTip
Coal
CoalTip
Nuclear
NukeTip
NaturalGas
GasTip
Hydro
HydroTip
Other
OtherTip

Char
Num
Num
Char
Num
Char
Num
Char
Num
Char
Num
Char
Num
Char
Num
Char

12
8
8
75
8
75
8
75
8
75
8
75
8
75
8
75

Format

Label

DOLLAR10.

Revenue ($B)

COMMA10.

All

COMMA10.
COMMA10.
COMMA10.

Natural Gas

COMMA10.

Hydropower

34 F Chapter 1: Sashelp Data Sets

Figure 1.21 continued


The First Five Observations Out of 48
Customer

Revenue

Year

RevTip

Commercial
$63
Revenue: $63 (billion)"
Industrial
$48
Revenue: $48 (billion)"
Other
$7
Revenue: $7 (billion)"
Residential
$85
Revenue: $85 (billion)"
Commercial
$66
Revenue: $66 (billion)"

1994

title="Bar:

Commercial

1994

title="Bar:

Industrial

1994

title="Bar:

Other

1994

title="Bar:

Residential

1995

title="Bar:

Commercial

AllPower

AllTip

Coal

.
.
.
3,247,522
title="Line:
All sources
Year:
1994
Power: 3,247,522 GWh"
1,690,694
.
CoalTip

.
.
.

.
Nuclear
.
.
.

title="Line:
Coal
Year:
1994
Power: 1,690,694 GWh"

640,440
.
NukeTip

NaturalGas
.
.
.

title="Line:
Nuclear
Year:
1994
Power: 640,440 GWh"
460,219
.
GasTip

Hydro
.
.
.

title="Line:
Natural Gas
Year:
1994
Power: 460,219 GWh"
260,126
.

Sashelp.electric Electric Power Generation and Revenue F 35

Figure 1.21 continued


The First Five Observations Out of 48
HydroTip

Other
.
.
.

title="Line:
Hydropower
Year:
1994
Power: 260,126 GWh"
196044
.
OtherTip

title="Line:
Other sources
Year:
1994
Power: 196,044 GWh"

The Customer Variable


The FREQ Procedure
Cumulative
Cumulative
Customer
Frequency
Percent
Frequency
Percent
---------------------------------------------------------------Commercial
12
25.00
12
25.00
Industrial
12
25.00
24
50.00
Other
12
25.00
36
75.00
Residential
12
25.00
48
100.00

36 F Chapter 1: Sashelp Data Sets

Sashelp.eng_multi
The following steps display information about the data set Sashelp.eng_multi and create Figure 1.22. The
data set contains 398 observations.
title "Sashelp.eng_multi";
proc contents data=sashelp.eng_multi varnum;
ods select position;
run;
title "The First Five Observations Out of 398";
proc print data=sashelp.eng_multi(obs=5) heading=h noobs;
run;

Figure 1.22 Sashelp.eng_multi


Sashelp.eng_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2

Term
Role

Char
Char

256
12

$256.

$256.

Term
Role

The First Five Observations Out of 398


Term
a
a
a
a
a

bit
fortiori
lot
lot of
posteriori

Role
Adv
Adv
Adv
Adj
Adj

Sashelp.enso El Nino Southern Oscillation F 37

Sashelp.enso El Nino Southern Oscillation


The Sashelp.ENSO (El NioSouthern Oscillation) data set contains measurements of monthly averaged
atmospheric pressure differences between Easter Island and Darwin, Australia, for a period of 168 months.
These pressure differences drive the southern trade winds. This data set is used to illustrate fitting nonlinear
functions to a scatter plot by using methods such as loess and penalized B-splines. These data show both
seasonal variations and variations due to El Nio. The following steps display information about the data set
Sashelp.enso and create Figure 1.23. The data set contains 168 observations.
title "Sashelp.enso --- El Nino Southern Oscillation";
proc contents data=sashelp.enso varnum;
ods select position;
run;
title "The First Five Observations Out of 168";
proc print data=sashelp.enso(obs=5) heading=h noobs;
run;

Figure 1.23 Sashelp.enso El Nino Southern Oscillation


Sashelp.enso --- El Nino Southern Oscillation
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3

Month
Year
Pressure

Num
Num
Num

Len
8
8
8

The First Five Observations Out of 168


Month
1
2
3
4
5

Year
0.08333
0.16667
0.25000
0.33333
0.41667

Pressure
12.9
11.3
10.6
11.2
10.9

38 F Chapter 1: Sashelp Data Sets

Sashelp.failure MOS Capacitor Failure


The Sashelp.failure data set provides MOS capacitor failure data. The following steps display information
about the data set Sashelp.failure and create Figure 1.24. The data set contains 70 observations.
title "Sashelp.failure --- MOS Capacitor Failure";
proc contents data=sashelp.failure varnum;
ods select position;
run;
title "The First Five Observations Out of 70";
proc print data=sashelp.failure(obs=5) heading=h noobs;
run;

title "The Cause and Process Variables";


proc freq data=sashelp.failure;
tables Cause;
tables Process;
run;

Figure 1.24 Sashelp.failure MOS Capacitor Failure


Sashelp.failure --- MOS Capacitor Failure
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

Cause
Process
Count
Day

Char
Char
Num
Num

14
9
8
8

Format

Label
Cause of Failure

DOWNAME.

The First Five Observations Out of 70


Cause
Contamination
Corrosion
Doping
Metallization
Miscellaneous

Process
Process
Process
Process
Process
Process

Count
A
A
A
A
A

15
2
1
2
3

Day
Monday
Monday
Monday
Monday
Monday

Sashelp.failure MOS Capacitor Failure F 39

Figure 1.24 continued


The Cause and Process Variables
The FREQ Procedure
Cause of Failure
Cumulative
Cumulative
Cause
Frequency
Percent
Frequency
Percent
------------------------------------------------------------------Contamination
10
14.29
10
14.29
Corrosion
10
14.29
20
28.57
Doping
10
14.29
30
42.86
Metallization
10
14.29
40
57.14
Miscellaneous
10
14.29
50
71.43
Oxide Defect
10
14.29
60
85.71
Silicon Defect
10
14.29
70
100.00

Cumulative
Cumulative
Process
Frequency
Percent
Frequency
Percent
-------------------------------------------------------------Process A
35
50.00
35
50.00
Process B
35
50.00
70
100.00

40 F Chapter 1: Sashelp Data Sets

Sashelp.fish Measurements of 159 Fish Caught in Lake


Laengelmavesi, Finland
The Sashelp.Fish data set contains measurements of 159 fish that were caught in Finlands Lake Laengelmaevesi; it is used to illustrate discriminant analysis. For each of the seven species (bream, roach, whitefish,
parkki, perch, pike, and smelt), the weight, length, height, and width of each fish are tallied. Three different
length measurements are recorded: from the nose of the fish to the beginning of its tail, from the nose to the
notch of its tail, and from the nose to the end of its tail. The height and width are recorded as percentages of
the third length variable. The following steps display information about the data set Sashelp.fish and create
Figure 1.25. The data set contains 159 observations.
title "Sashelp.fish --- Measurements of 159 Fish Caught in Lake Laengelmavesi, Finland";
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) heading=h noobs;
run;

title "The Species Variable";


proc freq data=sashelp.fish;
tables Species;
run;

Figure 1.25 Sashelp.fish Measurements of 159 Fish Caught in Lake Laengelmavesi, Finland
Sashelp.fish --- Measurements of 159 Fish Caught in Lake Laengelmavesi, Finland
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7

Species
Weight
Length1
Length2
Length3
Height
Width

Char
Num
Num
Num
Num
Num
Num

9
8
8
8
8
8
8

Sashelp.fish Measurements of 159 Fish Caught in Lake Laengelmavesi, Finland F 41

Figure 1.25 continued


The First Five Observations Out of 159
Species
Bream
Bream
Bream
Bream
Bream

Weight
242
290
340
363
430

Length1
23.2
24.0
23.9
26.3
26.5

Length2
25.4
26.3
26.5
29.0
29.0

Length3
30.0
31.2
31.1
33.5
34.0

Height

Width

11.5200
12.4800
12.3778
12.7300
12.4440

4.0200
4.3056
4.6961
4.4555
5.1340

The Species Variable


The FREQ Procedure
Cumulative
Cumulative
Species
Frequency
Percent
Frequency
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

42 F Chapter 1: Sashelp Data Sets

Sashelp.frnch_multi
The following steps display information about the data set Sashelp.frnch_multi and create Figure 1.26. The
data set contains 1,941 observations.
title "Sashelp.frnch_multi";
proc contents data=sashelp.frnch_multi varnum;
ods select position;
run;

Figure 1.26 Sashelp.frnch_multi


Sashelp.frnch_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2

Term
Role

Char
Char

33
4

Format

Informat

Label

$33.
$4.

$33.
$4.

Term
Role

Sashelp.ftable F 43

Sashelp.ftable
The following steps display information about the data set Sashelp.ftable and create Figure 1.27. The data
set contains 133,050 observations.
title "Sashelp.ftable";
proc contents data=sashelp.ftable varnum;
ods select position;
run;
title "The First Five Observations Out of 133050";
proc print data=sashelp.ftable(obs=5) heading=h noobs;
run;

Figure 1.27 Sashelp.ftable


Sashelp.ftable
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

FEANAME

Char

30

The First Five Observations Out of 133050


FEANAME
Stream
Burlington Northern Railroad
Conrail Railroad
Main
Union Pacific Railroad

44 F Chapter 1: Sashelp Data Sets

Sashelp.gas Nitrogen Oxide Emissions from a Single


Cylinder Engine
The Sashelp.Gas data set contains data from an experiment about gasoline engine exhaust emissions.
Nitrogen oxide emissions from a single-cylinder engine are measured for various combinations of fuel,
compression ratio, and equivalence ratio. This data set is used to illustrate fitting models with nonlinearly
transformed data. The following steps display information about the data set Sashelp.gas and create
Figure 1.28. The data set contains 171 observations.
title "Sashelp.gas --- Nitrogen Oxide Emissions from a Single Cylinder Engine";
proc contents data=sashelp.gas varnum;
ods select position;
run;
title "The First Five Observations Out of 171";
proc print data=sashelp.gas(obs=5) heading=h noobs;
run;

title "The Fuel Variable";


proc freq data=sashelp.gas;
tables Fuel;
run;

Figure 1.28 Sashelp.gas Nitrogen Oxide Emissions from a Single Cylinder Engine
Sashelp.gas --- Nitrogen Oxide Emissions from a Single Cylinder Engine
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

Fuel
CpRatio
EqRatio
NOx

Char
Num
Num
Num

8
8
8
8

Label

Compression Ratio
Equivalence Ratio
Nitrogen Oxide

The First Five Observations Out of 171

Fuel

Cp
Ratio

Eq
Ratio

NOx

Ethanol
Ethanol
Ethanol
Ethanol
Ethanol

12
12
12
12
12

0.907
0.761
1.108
1.016
1.189

3.741
2.295
1.498
2.881
0.760

Sashelp.gas Nitrogen Oxide Emissions from a Single Cylinder Engine F 45

Figure 1.28 continued


The Fuel Variable
The FREQ Procedure
Cumulative
Cumulative
Fuel
Frequency
Percent
Frequency
Percent
------------------------------------------------------------82rongas
9
5.26
9
5.26
94%Eth
25
14.62
34
19.88
Ethanol
90
52.63
124
72.51
Gasohol
13
7.60
137
80.12
Indolene
22
12.87
159
92.98
Methanol
12
7.02
171
100.00

46 F Chapter 1: Sashelp Data Sets

Sashelp.gcdirect Standard Street Direction Abbreviations


for US Geocoding
The Sashelp.gcdirect data set provides standard street direction abbreviations for geocoding, updated July
2012. The following steps display information about the data set Sashelp.gcdirect and create Figure 1.29.
The data set contains 16 observations.
title "Sashelp.gcdirect --- Standard Street Direction Abbreviations for US Geocoding";
proc contents data=sashelp.gcdirect varnum;
ods select position;
run;
title "The First Five Observations Out of 16";
proc print data=sashelp.gcdirect(obs=5) heading=h noobs;
run;

Figure 1.29 Sashelp.gcdirect Standard Street Direction Abbreviations for US Geocoding


Sashelp.gcdirect --- Standard Street Direction Abbreviations for US Geocoding
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2

DIRECTION
DIRABRV

Char
Char

20
10

Label
Street direction prefix/sufix or abbreviation
Street direction abbreviation

The First Five Observations Out of 16


DIRECTION

DIRABRV

E
EAST
N
NE
NORTH

E
E
N
NE
N

Sashelp.gcstate State/Province Names and Abbreviation for Geocoding F 47

Sashelp.gcstate State/Province Names and Abbreviation


for Geocoding
The Sashelp.gcstate data set provides state/province/region names and abbreviations for geocoding. The
following steps display information about the data set Sashelp.gcstate and create Figure 1.30. The data set
contains 74 observations.
title "Sashelp.gcstate --- State/Province Names and Abbreviation for Geocoding";
proc contents data=sashelp.gcstate varnum;
ods select position;
run;
title "The First Five Observations Out of 74";
proc print data=sashelp.gcstate(obs=5) heading=h noobs;
run;

Figure 1.30 Sashelp.gcstate State/Province Names and Abbreviation for Geocoding


Sashelp.gcstate --- State/Province Names and Abbreviation for Geocoding
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7

MapIDName
MapIDName2
MapIDNameAbrv
ISOname
ISOalpha2
ISOalpha3
ISOname2

Char
Char
Char
Char
Char
Char
Char

65
65
5
18
2
3
18

Label
State/province name
Normalized state/province name
State/province abbreviation
ISO country name
ISO alpha2 country code
ISO alpha3 country code
Normalized ISO country name

48 F Chapter 1: Sashelp Data Sets

Figure 1.30 continued


The First Five Observations Out of 74

MapIDName

MapIDName2

Alberta
Alaska
Alabama
Arkansas
American Samoa

ALBERTA
ALASKA
ALABAMA
ARKANSAS
AMERICANSAMOA

ISOalpha2

ISOalpha3

CA
US
US
US
US

CAN
USA
USA
USA
USA

Map
IDName
Abrv

ISOname

AB
AK
AL
AR
AS

Canada
United
United
United
United

ISOname2
CANADA
UNITEDSTATES
UNITEDSTATES
UNITEDSTATES
UNITEDSTATES

States
States
States
States

Sashelp.gctype Street Type Abbreviations for US Geocoding F 49

Sashelp.gctype Street Type Abbreviations for US


Geocoding
The Sashelp.gctype data set provides USPS standard street type abbreviations for geocoding. The following
steps display information about the data set Sashelp.gctype and create Figure 1.31. The data set contains 792
observations.
title "Sashelp.gctype --- Street Type Abbreviations for US Geocoding";
proc contents data=sashelp.gctype varnum;
ods select position;
run;
title "The First Five Observations Out of 792";
proc print data=sashelp.gctype(obs=5) heading=h noobs;
run;

Figure 1.31 Sashelp.gctype Street Type Abbreviations for US Geocoding


Sashelp.gctype --- Street Type Abbreviations for US Geocoding
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3

name
type
GROUP

Char
Char
Num

21
14
8

Label
Common prefix/suffix including abbreviations (cleaned)
USPS standard abbreviation
Equivalent grouping

The First Five Observations Out of 792


name

type

4WDTRL
ALLEE
ALLEY
ALLY
ALY

4WD TRL
ALY
ALY
ALY
ALY

GROUP
2
4
4
4
4

50 F Chapter 1: Sashelp Data Sets

Sashelp.geoexm Primary Street Lookup Data for PROC


GEOCODE (Tiger 2012)
The Sashelp.geoexm data set provides primary street lookup data for PROC GEOCODE. The following
steps display information about the data set Sashelp.geoexm and create Figure 1.32. The data set contains
37,389 observations.
title "Sashelp.geoexm --- Primary Street Lookup Data for PROC GEOCODE (Tiger 2012)";
proc contents data=sashelp.geoexm varnum;
ods select position;
run;
title "The First Five Observations Out of 37389";
proc print data=sashelp.geoexm(obs=5) heading=h noobs;
run;

Figure 1.32 Sashelp.geoexm Primary Street Lookup Data for PROC GEOCODE (Tiger 2012)
Sashelp.geoexm --- Primary Street Lookup Data for PROC GEOCODE (Tiger 2012)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

Name
Name2
City
City2
MapIDNameAbrv
ZIP
First
Last

Char
Char
Char
Char
Char
Num
Num
Num

25
22
13
12
2
8
8
8

Format

Label

$CHAR52.
$CHAR52.
$CHAR2.
Z5.

Street name
Street name (normalized)
City name
City name (normalized)
State abbreviation
ZIP code
First obs in GEOEXS data set
Last obs in GEOEXS data set

Sashelp.geoexm Primary Street Lookup Data for PROC GEOCODE (Tiger 2012) F 51

Figure 1.32 continued


The First Five Observations Out of 37389

Name

Name2

1
1
1
1
1

1
1
1
1
1

City2
APEX
CARY
HOLLYSPRINGS
RALEIGH
WAKEFOREST

City
Apex
Cary
Holly Springs
Raleigh
Wake Forest
Map
IDName
Abrv
NC
NC
NC
NC
NC

ZIP
.
.
.
.
.

First
1
71
253
257
267

Last
70
252
256
266
278

52 F Chapter 1: Sashelp Data Sets

Sashelp.geoexp Tertiary Street Lookup Data for PROC


GEOCODE (Tiger 2012)
The Sashelp.geoexp data set provides tertiary street lookup data for PROC GEOCODE (Tiger 2011). The
following steps display information about the data set Sashelp.geoexp and create Figure 1.33. The data set
contains 827,574 observations.
title "Sashelp.geoexp --- Tertiary Street Lookup Data for PROC GEOCODE (Tiger 2012)";
proc contents data=sashelp.geoexp varnum;
ods select position;
run;
title "The First Five Observations Out of 827574";
proc print data=sashelp.geoexp(obs=5) heading=h noobs;
run;

Figure 1.33 Sashelp.geoexp Tertiary Street Lookup Data for PROC GEOCODE (Tiger 2012)
Sashelp.geoexp --- Tertiary Street Lookup Data for PROC GEOCODE (Tiger 2012)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

X
Y

Num
Num

Len

Label

8
8

Longitude (degrees)
Latitude (degrees)

The First Five Observations Out of 827574


X

-78.8557
-78.8557
-78.8546
-78.8536
-78.8511

35.7052
35.7052
35.7057
35.7062
35.7074

Sashelp.geoexs Secondary Street Lookup Data for PROC GEOCODE (Tiger 2012) F 53

Sashelp.geoexs Secondary Street Lookup Data for PROC


GEOCODE (Tiger 2012)
The Sashelp.geoexs data set provides secondary street lookup data for PROC GEOCODE (Tiger 2011). The
following steps display information about the data set Sashelp.geoexs and create Figure 1.34. The data set
contains 111,927 observations.
title "Sashelp.geoexs --- Secondary Street Lookup Data for PROC GEOCODE (Tiger 2012)";
proc contents data=sashelp.geoexs varnum;
ods select position;
run;
title "The First Five Observations Out of 111927";
proc print data=sashelp.geoexs(obs=5) heading=h noobs;
run;

Figure 1.34 Sashelp.geoexs Secondary Street Lookup Data for PROC GEOCODE (Tiger 2012)
Sashelp.geoexs --- Secondary Street Lookup Data for PROC GEOCODE (Tiger 2012)
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Variable

Type

Len

PreDirAbrv
SufDirAbrv
PreTypAbrv
SufTypAbrv
TLID
MTFCC
Side
FromAdd
ToAdd
BlkGrp
Block
Tract
CountyFp
N
Start

Char
Char
Char
Char
Num
Char
Char
Num
Num
Num
Num
Num
Num
Num
Num

2
2
9
6
8
5
1
8
8
8
8
8
8
8
8

Label
Street name direction prefix
Street name direction suffix
Street name type prefix
Street name type suffix
TIGER/Line ID
MAF/TIGER feature class code
Side of street
Beginning house number
Ending house number
Census 2010 block group
Census 2010 tabulation block
Census 2010 tract
County FIPS code
Number of obs in GEOEXP data set
First obs in GEOEXP data set

54 F Chapter 1: Sashelp Data Sets

Figure 1.34 continued


The First Five Observations Out of 111927
Pre
Dir
Abrv

Suf
Dir
Abrv

Pre
Typ
Abrv
US
US
US
US
US

From
Add

To
Add

Blk
Grp

.
.
.
.
.

.
.
.
.
.

1
1
2
2
1

Suf
Typ
Abrv

Hwy
Hwy
Hwy
Hwy
Hwy

TLID

MTFCC

Side

72493942
72493942
72499683
72499683
72499687

S1200
S1200
S1200
S1200
S1200

L
R
L
R
L

Block

Tract

County
Fp

1046
1045
2044
2060
1045

53417
53417
53418
53420
53417

183
183
183
183
183

7
7
5
5
6

Start
1
8
15
20
25

Sashelp.germ_multi F 55

Sashelp.germ_multi
The following steps display information about the data set Sashelp.germ_multi and create Figure 1.35. The
data set contains 16 observations.
title "Sashelp.germ_multi";
proc contents data=sashelp.germ_multi varnum;
ods select position;
run;
title "The First Five Observations Out of 16";
proc print data=sashelp.germ_multi(obs=5) heading=h noobs;
run;

Figure 1.35 Sashelp.germ_multi


Sashelp.germ_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2

Term
Role

Char
Char

256
6

$256.

$256.

Term
Role

The First Five Observations Out of 16


Term
bergisch gladbacher
gang und gbe
new yorker
de jure
in bezug auf
Role
Adj
Adj
Adj
Adv
Adv

56 F Chapter 1: Sashelp Data Sets

Sashelp.gisimp GISIMP: SAS/GIS Import Data Set


The Sashelp.gisimp data set provides default values used to initialize various fields in the SAS/GIS Import
Window. See SAS/GIS Spatial Data and Procedure Guide for more information about this data set. The
following steps display information about the data set Sashelp.gisimp and create Figure 1.36. The data set
contains 19 observations.
title "Sashelp.gisimp --- GISIMP: SAS/GIS Import Data Set";
proc contents data=sashelp.gisimp varnum;
ods select position;
run;
title "The First Five Observations Out of 19";
proc print data=sashelp.gisimp(obs=5) heading=h noobs;
run;

title "The TYPE Variable";


proc freq data=sashelp.gisimp;
tables TYPE;
run;

Figure 1.36 Sashelp.gisimp GISIMP: SAS/GIS Import Data Set


Sashelp.gisimp --- GISIMP: SAS/GIS Import Data Set
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10
11
12

TYPE
FILE_DES
FILEREF
REQ
MAINMETH
METH
DTYPE
SAVE_VAR
SAVE_LYR
DEP
DEFMLIB
DEFSLIB

Char
Char
Char
Num
Char
Char
Char
Num
Num
Char
Char
Char

8
50
8
8
35
8
3
8
8
200
8
8

Sashelp.gisimp GISIMP: SAS/GIS Import Data Set F 57

Figure 1.36 continued


The First Five Observations Out of 19
TYPE

FILE_DES

FILEREF

REQ

Tiger
Tiger
Tiger
Tiger
Tiger

TIGER
TIGER
TIGER
TIGER
TIGER

TIGER1
TIGER2
TIGER4
TIGER5
TIGER6

1
1
0
0
0

basic data record


shape coordinate points
index to alternate feature names
feature name list
additional address and zip code data

METH

DTYPE

SAVE_VAR

SAVE_LYR

TIGER
TIGER
TIGER
TIGER
TIGER

ASC
ASC
ASC
ASC
ASC

0
0
0
0
0

0
0
0
0
0

DEP

DEFMLIB

DEFSLIB

Sasuser
Sasuser
Sasuser
Sasuser
Sasuser

Sasuser
Sasuser
Sasuser
Sasuser
Sasuser

MAINMETH
SASHELP.GISIMP.SUBTIGER.SCL
SASHELP.GISIMP.SUBTIGER.SCL
SASHELP.GISIMP.SUBTIGER.SCL
SASHELP.GISIMP.SUBTIGER.SCL
SASHELP.GISIMP.SUBTIGER.SCL

The TYPE Variable


The FREQ Procedure
Cumulative
Cumulative
TYPE
Frequency
Percent
Frequency
Percent
------------------------------------------------------------ARC
1
5.26
1
5.26
DLG
1
5.26
2
10.53
DXF
1
5.26
3
15.79
Dynamap
5
26.32
8
42.11
Genline
1
5.26
9
47.37
Genpoint
1
5.26
10
52.63
Genpoly
1
5.26
11
57.89
Mapinfo
2
10.53
13
68.42
SASGRAPH
1
5.26
14
73.68
Tiger
5
26.32
19
100.00

58 F Chapter 1: Sashelp Data Sets

Sashelp.gngsmp1 Sample Chart Data for Graph-N-Go


The Sashelp.gngsmp1 data set provides sample chart data for Graph-N-Go. The following steps display
information about the data set Sashelp.gngsmp1 and create Figure 1.37. The data set contains 36 observations.
title "Sashelp.gngsmp1 --- Sample Chart Data for Graph-N-Go";
proc contents data=sashelp.gngsmp1 varnum;
ods select position;
run;
title "The First Five Observations Out of 36";
proc print data=sashelp.gngsmp1(obs=5) heading=h noobs;
run;

title "The group and categoryc Variables";


proc freq data=sashelp.gngsmp1;
tables group;
tables categoryc;
run;

Figure 1.37 Sashelp.gngsmp1 Sample Chart Data for Graph-N-Go


Sashelp.gngsmp1 --- Sample Chart Data for Graph-N-Go
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13

Variable

Type

Len

group
categoryc
seriesc
catc
categoryn
catn
seriesn
subgroup
response
response1
response2
response3
response4

Char
Char
Char
Char
Num
Num
Num
Char
Num
Num
Num
Num
Num

7
2
2
2
8
8
8
10
8
8
8
8
8

Label
Group
Category
Series
Category
Category
Category
Series
Subgroup
Response
Response
Response
Response
Response

1
2
3
4

Sashelp.gngsmp1 Sample Chart Data for Graph-N-Go F 59

Figure 1.37 continued


The First Five Observations Out of 36
group
Group
Group
Group
Group
Group

1
1
1
1
1

categoryc

seriesc

B
B
B
A
A

d
d
d
d
d

catc

categoryn

catn

seriesn

15
15
15
10
10

15
15
15
10
10

6
6
6
6
6

B
B
B
A
A

response

response1

response2

response3

response4

1
1
3
1
2

4
4
6
4
5

3
3
5
3
4

2
2
4
2
3

1
1
3
1
2

The group and categoryc Variables


The FREQ Procedure
Group
Cumulative
Cumulative
group
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------Group 1
21
58.33
21
58.33
Group 2
15
41.67
36
100.00

Category
Cumulative
Cumulative
categoryc
Frequency
Percent
Frequency
Percent
-------------------------------------------------------------A
4
11.11
4
11.11
B
5
13.89
9
25.00
C
5
13.89
14
38.89
D
4
11.11
18
50.00
E
5
13.89
23
63.89
F
5
13.89
28
77.78
G
2
5.56
30
83.33
H
4
11.11
34
94.44
I
2
5.56
36
100.00

subgroup
Subgroup
Subgroup
Subgroup
Subgroup
Subgroup

1
1
2
1
2

60 F Chapter 1: Sashelp Data Sets

Sashelp.gngsmp2
The Sashelp.gngsmp2 data set provides sample data for Graph-N-Go. The following steps display information about the data set Sashelp.gngsmp2 and create Figure 1.38. The data set contains 8 observations.
title "Sashelp.gngsmp2";
proc contents data=sashelp.gngsmp2 varnum;
ods select position;
run;
title "The First Five Observations Out of 8";
proc print data=sashelp.gngsmp2(obs=5) heading=h noobs;
run;

Figure 1.38 Sashelp.gngsmp2


Sashelp.gngsmp2
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10
11

Xn
Xc
Y
ID
Y1
Y2
Y3
Y4
Date
Time
DateTime

Num
Char
Num
Char
Num
Num
Num
Num
Num
Num
Num

8
5
8
5
8
8
8
8
8
8
8

Format

Label
X-axis
X-axis
Y-axis
ID

DATE.
TIME5.
DATETIME14.

The First Five Observations Out of 8


Xn

Xc

ID

Y1

Y2

Y3

Y4

Date

10
20
30
40
50

b
a
c
g
h

1
2
5
4
4

A
A
A
A
B

10
13
15
18
23

22
18
16
16
19

30
30
30
26
24

38
39
32
36
37

01JAN00
02JAN00
03JAN00
04JAN00
05JAN00

Time

DateTime

12:00
12:01
12:02
12:03
12:04

01JAN00:12:00
01JAN00:12:01
01JAN00:12:02
01JAN00:12:03
01JAN00:12:04

Sashelp.gnp GNP/Macro Data (Quarterly: 1960-1991) F 61

Sashelp.gnp GNP/Macro Data (Quarterly: 1960-1991)


The Sashelp.gnp data set provides GNP/macro data (quarterly: 19601991). The following steps display
information about the data set Sashelp.gnp and create Figure 1.39. The data set contains 126 observations.
title "Sashelp.gnp --- GNP/Macro Data (Quarterly: 1960-1991)";
proc contents data=sashelp.gnp varnum;
ods select position;
run;
title "The First Five Observations Out of 126";
proc print data=sashelp.gnp(obs=5) heading=h noobs;
run;

Figure 1.39 Sashelp.gnp GNP/Macro Data (Quarterly: 1960-1991)


Sashelp.gnp --- GNP/Macro Data (Quarterly: 1960-1991)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5
6

DATE
GNP
CONSUMP
INVEST
EXPORTS
GOVT

Num
Num
Num
Num
Num
Num

Len
8
8
8
8
8
8

Format

Label

YYQ.
gross national product ($billions)
personal consumption expenditures
gross private domestic investment
net exports of goods and services
govt purchases of goods and services

The First Five Observations Out of 126


DATE

GNP

CONSUMP

INVEST

EXPORTS

1960Q1
1960Q2
1960Q3
1960Q4
1961Q1

516.1
514.5
517.7
513.0
517.4

325.5
331.6
331.7
333.8
334.4

88.7
78.1
77.4
68.5
69.5

4.3
5.1
6.5
7.7
8.3

GOVT
97.6
99.6
102.1
103.0
105.3

62 F Chapter 1: Sashelp Data Sets

Sashelp.gridded Gridded Weight and Height


The Sashelp.gridded data set provides gridded weight and height. The following steps display information
about the data set Sashelp.gridded and create Figure 1.40. The data set contains 3,600 observations.
title "Sashelp.gridded --- Gridded Weight and Height";
proc contents data=sashelp.gridded varnum;
ods select position;
run;
title "The First Five Observations Out of 3600";
proc print data=sashelp.gridded(obs=5) heading=h noobs;
run;

Figure 1.40 Sashelp.gridded Gridded Weight and Height


Sashelp.gridded --- Gridded Weight and Height
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4

Height
Weight
Count
Density

Num
Num
Num
Num

Len
8
8
8
8

The First Five Observations Out of 3600


Height

Weight

Count

Density

51.5000
51.9237
52.3475
52.7712
53.1949

67
67
67
67
67

0
0
0
0
0

0
0
0
0
0

Sashelp.gulfoil Monthly Oil and Gas Production F 63

Sashelp.gulfoil Monthly Oil and Gas Production


The Sashelp.gulfoil data set provides monthly oil and gas production. The following steps display information
about the data set Sashelp.gulfoil and create Figure 1.41. The data set contains 3,760 observations.
title "Sashelp.gulfoil --- Monthly Oil and Gas Production";
proc contents data=sashelp.gulfoil varnum;
ods select position;
run;
title "The First Five Observations Out of 3760";
proc print data=sashelp.gulfoil(obs=5) heading=h noobs;
run;

title "The regionname Variable";


proc freq data=sashelp.gulfoil;
tables regionname;
run;

Figure 1.41 Sashelp.gulfoil Monthly Oil and Gas Production


Sashelp.gulfoil --- Monthly Oil and Gas Production
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5

regionname
protractionname
date
oil
gas

Char
Char
Num
Num
Num

7
23
8
8
8

Format

Label

MONYY7.
COMMA12.
COMMA12.

Region within Gulf of Mexico


Geographic Protraction Area Name
Time ID (monthly)
Oil (Barrels)
Gas (Thousand Cubic Feet)

The First Five Observations Out of 3760


regionname
Central
Central
Central
Central
Central

protractionname
Bay
Bay
Bay
Bay
Bay

Marchand
Marchand
Marchand
Marchand
Marchand

Area
Area
Area
Area
Area

date

oil

gas

JAN1996
FEB1996
MAR1996
APR1996
MAY1996

93,830
86,595
92,827
88,746
67,987

140,339
105,069
99,941
72,398
74,693

64 F Chapter 1: Sashelp Data Sets

Figure 1.41 continued


The regionname Variable
The FREQ Procedure
Region within Gulf of Mexico
Cumulative
Cumulative
regionname
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------Central
2582
68.67
2582
68.67
Western
1178
31.33
3760
100.00

Sashelp.heart Framingham Heart Study F 65

Sashelp.heart Framingham Heart Study


The Sashelp.heart data set provides results from the Framingham Heart Study. The following steps display
information about the data set Sashelp.heart and create Figure 1.42. The data set contains 5,209 observations.
title "Sashelp.heart --- Framingham Heart Study";
proc contents data=sashelp.heart varnum;
ods select position;
run;
title "The First Five Observations Out of 5209";
proc print data=sashelp.heart(obs=5) heading=h noobs;
run;

title "The Status and DeathCause Variables";


proc freq data=sashelp.heart;
tables Status;
tables DeathCause;
run;

Figure 1.42 Sashelp.heart Framingham Heart Study


Sashelp.heart --- Framingham Heart Study
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Variable

Type

Len

Status
DeathCause
AgeCHDdiag
Sex
AgeAtStart
Height
Weight
Diastolic
Systolic
MRW
Smoking
AgeAtDeath
Cholesterol
Chol_Status
BP_Status
Weight_Status
Smoking_Status

Char
Char
Num
Char
Num
Num
Num
Num
Num
Num
Num
Num
Num
Char
Char
Char
Char

5
26
8
6
8
8
8
8
8
8
8
8
8
10
7
11
17

Label

Cause of Death
Age CHD Diagnosed
Age at Start

Metropolitan Relative Weight


Age at Death
Cholesterol Status
Blood Pressure Status
Weight Status
Smoking Status

66 F Chapter 1: Sashelp Data Sets

Figure 1.42 continued


The First Five Observations Out of 5209

Status
Dead
Dead
Alive
Alive
Alive

Death
Cause
Other
Cancer

Age
CHDdiag
.
.
.
.
.

Sex

Age
At
Start

Height

Weight

Diastolic

Female
Female
Female
Female
Male

29
41
57
39
42

62.50
59.75
62.25
65.75
66.00

140
194
132
158
156

78
92
90
80
76

Smoking

Age
At
Death

Cholesterol

0
0
10
0
20

55
57
.
.
.

.
181
250
242
281

Chol_
Status

Desirable
High
High
High

Systolic
124
144
170
128
110

MRW
121
183
114
123
116

BP_Status

Weight_
Status

Smoking_Status

Normal
High
High
Normal
Optimal

Overweight
Overweight
Overweight
Overweight
Overweight

Non-smoker
Non-smoker
Moderate (6-15)
Non-smoker
Heavy (16-25)

The Status and DeathCause Variables


The FREQ Procedure
Cumulative
Cumulative
Status
Frequency
Percent
Frequency
Percent
----------------------------------------------------------Alive
3218
61.78
3218
61.78
Dead
1991
38.22
5209
100.00

Cause of Death
Cumulative
Cumulative
DeathCause
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------------------------Cancer
539
27.07
539
27.07
Cerebral Vascular Disease
378
18.99
917
46.06
Coronary Heart Disease
605
30.39
1522
76.44
Other
357
17.93
1879
94.37
Unknown
112
5.63
1991
100.00
Frequency Missing = 3218

Sashelp.holiday Holiday Data for En US and En CA Locale F 67

Sashelp.holiday Holiday Data for En US and En CA Locale


The Sashelp.holiday data set provides holiday data for EN_US and EN_CA locale. The following steps
display information about the data set Sashelp.holiday and create Figure 1.43. The data set contains 27
observations.
title "Sashelp.holiday --- Holiday Data for En US and En CA Locale";
proc contents data=sashelp.holiday varnum;
ods select position;
run;
title "The First Five Observations Out of 27";
proc print data=sashelp.holiday(obs=5) heading=h noobs;
run;

Figure 1.43 Sashelp.holiday Holiday Data for En US and En CA Locale


Sashelp.holiday --- Holiday Data for En US and En CA Locale
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

name
desc
category
begin
end
month
day
rule

Char
Char
Char
Num
Num
Num
Num
Num

32
64
32
8
8
8
8
8

The First Five Observations Out of 27


name

desc

BOXING
CANADA
CANADAOBSERVED
CHRISTMAS
CHRISTMAS

Boxing Day
Canadian Independence Day
Canadian Independence Day observed
Christmas
Christmas

category

begin

end

en_CA
en_CA
en_CA
en_US
en_CA

.
.
.
.
.

.
.
.
.
.

month
12
7
7
12
12

day
26
1
1
25
25

rule
0
0
8
0
0

68 F Chapter 1: Sashelp Data Sets

Sashelp.humid Source: W. L. Donn, Meteorology, 4th


Edition
The following steps display information about the data set Sashelp.humid and create Figure 1.44. The data
set contains 584 observations.
title "Sashelp.humid --- Source: W. L. Donn, Meteorology, 4th Edition";
proc contents data=sashelp.humid varnum;
ods select position;
run;
title "The First Five Observations Out of 584";
proc print data=sashelp.humid(obs=5) heading=h noobs;
run;

Figure 1.44 Sashelp.humid Source: W. L. Donn, Meteorology, 4th Edition


Sashelp.humid --- Source: W. L. Donn, Meteorology, 4th Edition
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

BulbTemp
Humidity
AirTemp
ColorVar

Num
Num
Num
Char

8
8
8
8

Label
Wet-Bulb Temperature (F)
Relative Humidity (%)
Air Temperature (F)

The First Five Observations Out of 584


Bulb
Temp
1
2
3
1
2

Humidity
67
33
1
73
46

Air
Temp
0
0
0
5
5

ColorVar
CX0000FF
CX0000FF
CX0000FF
CX0900F6
CX0900F6

Sashelp.iris Fishers Iris Data (1936) F 69

Sashelp.iris Fishers Iris Data (1936)


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 data set Sashelp.iris and create Figure 1.45. The data set contains 150
observations.
title "Sashelp.iris --- Fisher's Iris Data (1936)";
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) heading=h noobs;
run;

title "The Species Variable";


proc freq data=sashelp.iris;
tables Species;
run;

Figure 1.45 Sashelp.iris Fishers Iris Data (1936)


Sashelp.iris --- Fisher's Iris Data (1936)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5

Species
SepalLength
SepalWidth
PetalLength
PetalWidth

Char
Num
Num
Num
Num

10
8
8
8
8

Label
Iris Species
Sepal Length (mm)
Sepal Width (mm)
Petal Length (mm)
Petal Width (mm)

The First Five Observations Out of 150

Species

Sepal
Length

Sepal
Width

Petal
Length

Petal
Width

Setosa
Setosa
Setosa
Setosa
Setosa

50
46
46
51
55

33
34
36
33
35

14
14
10
17
13

2
3
2
5
2

70 F Chapter 1: Sashelp Data Sets

Figure 1.45 continued


The Species Variable
The FREQ Procedure
Iris Species
Cumulative
Cumulative
Species
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------Setosa
50
33.33
50
33.33
Versicolor
50
33.33
100
66.67
Virginica
50
33.33
150
100.00

Sashelp.ital_multi F 71

Sashelp.ital_multi
The following steps display information about the data set Sashelp.ital_multi and create Figure 1.46. The
data set contains 520 observations.
title "Sashelp.ital_multi";
proc contents data=sashelp.ital_multi varnum;
ods select position;
run;
title "The First Five Observations Out of 520";
proc print data=sashelp.ital_multi(obs=5) heading=h noobs;
run;

Figure 1.46 Sashelp.ital_multi


Sashelp.ital_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2

Term
Role

Char
Char

256
7

$256.

$256.

Term
Role

The First Five Observations Out of 520


Term
a
a
a
a
a

causa
causa
causa
causa
causa

Role
Adj
Adj
Adj
Adj
Adj

degli
dei
del
dell'
della

72 F Chapter 1: Sashelp Data Sets

Sashelp.ja
The Sashelp.ja data set provides a DBCS translation tables. JA is for Japanese. The following steps display
information about the data set Sashelp.ja and create Figure 1.47. The data set contains 7,923 observations.
title "Sashelp.ja";
proc contents data=sashelp.ja varnum;
ods select position;
run;
title "The First Five Observations Out of 7923";
proc print data=sashelp.ja(obs=5) heading=h noobs;
run;

Figure 1.47 Sashelp.ja


Sashelp.ja
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5

unicode
euc
ibm
jis
pcibm

Char
Char
Char
Char
Char

6
4
4
4
4

The First Five Observations Out of 7923


unicode

euc

ibm

jis

pcibm

U+3000
U+3001
U+3002
U+FF0C
U+FF0E

A1A1
A1A2
A1A3
A1A4
A1A5

4040
4344
4341
426B
424B

2121
2122
2123
2124
2125

8140
8141
8142
8143
8144

Sashelp.junkmail Classifying Email As Junk Or Not F 73

Sashelp.junkmail Classifying Email As Junk Or Not


The Sashelp.JunkMail data set comes from a study that classifies whether an e-mail is junk e-mail (coded as
1) or not (coded as 0). The data were collected in Hewlett-Packard labs and donated by George Forman. The
data set contains 4,601 observations with 58 variables. The response variable is a binary indicator of whether
an e-mail is considered spam or not. The 57 variables are continuous variables that record frequencies of
some common words and characters and lengths of uninterrupted sequences of capital letters in e-mails. The
following steps display information about the data set Sashelp.junkmail and create Figure 1.48. The data set
contains 4,601 observations.
title "Sashelp.junkmail --- Classifying Email As Junk Or Not";
proc contents data=sashelp.junkmail varnum;
ods select position;
run;
title "The First Five Observations Out of 4601";
proc print data=sashelp.junkmail(obs=5) heading=h noobs;
run;

74 F Chapter 1: Sashelp Data Sets

Figure 1.48 Sashelp.junkmail Classifying Email As Junk Or Not


Sashelp.junkmail --- Classifying Email As Junk Or Not
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Variable

Type

Test
Make
Address
All
_3D
Our
Over
Remove
Internet
Order
Mail
Receive
Will
People
Report
Addresses
Free
Business
Email
You
Credit
Your
Font
_000
Money
HP
HPL
George
_650
Lab
Labs
Telnet
_857
Data
_415
_85
Technology
_1999
Parts
PM
Direct
CS
Meeting
Original
Project
RE
Edu

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8

Label
0 - Training, 1 - Test

3D

000

650

857
415
85
1999

Sashelp.junkmail Classifying Email As Junk Or Not F 75

Figure 1.48 continued


Sashelp.junkmail --- Classifying Email As Junk Or Not
The CONTENTS Procedure
Variables in Creation Order
#
48
49
50
51
52
53
54
55
56
57
58
59

Variable

Type

Table
Conference
Semicolon
Paren
Bracket
Exclamation
Dollar
Pound
CapAvg
CapLong
CapTotal
Class

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
8
8
8
8
8
8
8
8
8
8
8
8

Label

Capital
Capital
Capital
0 - Not

Run Length Average


Run Length Longest
Run Length Total
Junk, 1 - Junk

76 F Chapter 1: Sashelp Data Sets

Figure 1.48 continued


The First Five Observations Out of 4601

Test Make Address


1
0
1
0
0

0.00
0.21
0.06
0.00
0.00

0.64
0.28
0.00
0.00
0.00

All _3D
0.64
0.50
0.71
0.00
0.00

0
0
0
0
0

Our Over Remove Internet Order Mail Receive Will


0.32
0.14
1.23
0.63
0.63

0.00
0.28
0.19
0.00
0.00

0.00
0.21
0.19
0.31
0.31

0.00
0.07
0.12
0.63
0.63

People Report Addresses Free Business Email


0.00
0.65
0.12
0.31
0.31

0.00
0.21
0.00
0.00
0.00

0.00
0.14
1.75
0.00
0.00

0.32
0.14
0.06
0.31
0.31

0.00
0.07
0.06
0.00
0.00

0.00
0.00
0.64
0.31
0.31

0.00
0.94
0.25
0.63
0.63

0.00
0.21
0.38
0.31
0.31

0.64
0.79
0.45
0.31
0.31

You Credit Your Font _000 Money

1.29
0.28
1.03
0.00
0.00

1.93
3.47
1.36
3.18
3.18

0.00
0.00
0.32
0.00
0.00

0.96
1.59
0.51
0.31
0.31

0
0
0
0
0

0.00
0.43
1.16
0.00
0.00

0.00
0.43
0.06
0.00
0.00

HP HPL George _650 Lab Labs Telnet _857 Data _415 _85 Technology _1999 Parts
0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

PM Direct CS Meeting Original Project


0
0
0
0
0

0.00
0.00
0.06
0.00
0.00

0
0
0
0
0

0
0
0
0
0

0.00
0.00
0.12
0.00
0.00

0
0
0
0
0

0
0
0
0
0

RE
0.00
0.00
0.06
0.00
0.00

0
0
0
0
0

0
0
0
0
0

0
0
0
0
0

0.00
0.07
0.00
0.00
0.00

0
0
0
0
0

Edu Table Conference Semicolon


0.00
0.00
0.06
0.00
0.00

0
0
0
0
0

0
0
0
0
0

0.00
0.00
0.01
0.00
0.00

Paren

Bracket

Exclamation

Dollar

Pound

Cap
Avg

Cap
Long

Cap
Total

Class

0.000
0.132
0.143
0.137
0.135

0
0
0
0
0

0.778
0.372
0.276
0.137
0.135

0.000
0.180
0.184
0.000
0.000

0.000
0.048
0.010
0.000
0.000

3.756
5.114
9.821
3.537
3.537

61
101
485
40
40

278
1028
2259
191
191

1
1
1
1
1

Sashelp.ko F 77

Sashelp.ko
The Sashelp.ko data set provides a DBCS translation tables. KO is for Korean. The following steps display
information about the data set Sashelp.ko and create Figure 1.49. The data set contains 2,561 observations.
title "Sashelp.ko";
proc contents data=sashelp.ko varnum;
ods select position;
run;
title "The First Five Observations Out of 2561";
proc print data=sashelp.ko(obs=5) heading=h noobs;
run;

Figure 1.49 Sashelp.ko


Sashelp.ko
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

unicode
euc
ibm
pcibm

Char
Char
Char
Char

6
4
4
4

The First Five Observations Out of 2561


unicode

euc

ibm

pcibm

U+C90E
U+3002
U+00B7
U+2025
U+2026

A1A0
A1A3
A1A4
A1A5
A1A6

4140
4142
4143
4144
4145

8140
8142
8143
8144
8145

78 F Chapter 1: Sashelp Data Sets

Sashelp.lake Sample 3D Data of Lake Depth


The Sashelp.lake data set provides a sample 3D data of lake depth. The following steps display information
about the data set Sashelp.lake and create Figure 1.50. The data set contains 315 observations.
title "Sashelp.lake --- Sample 3D Data of Lake Depth";
proc contents data=sashelp.lake varnum;
ods select position;
run;
title "The First Five Observations Out of 315";
proc print data=sashelp.lake(obs=5) heading=h noobs;
run;

Figure 1.50 Sashelp.lake Sample 3D Data of Lake Depth


Sashelp.lake --- Sample 3D Data of Lake Depth
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3

Width
Length
Depth

Num
Num
Num

Len
8
8
8

The First Five Observations Out of 315


Width

Length

Depth

0
0
0
0
0

0.0
0.5
1.0
1.5
2.0

0.0000000
0.0000000
0.0000000
-.0059773
0.0000000

Sashelp.leutest Leukemia Data Set - Validation Data F 79

Sashelp.leutest Leukemia Data Set - Validation Data


The Sashelp.LeuTrain and Sashelp.LeuTest data sets provide microarray data from Zou and Hastie (2005).
The Sashelp.LeuTrain data set consists of 7129 genes and 38 training samples, and the Sashelp.LeuTest data
set consists of the same 7129 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). These data are not displayed because of the number of variables.

Sashelp.leutrain Leukemia Data Set - Training Data


The Sashelp.LeuTrain and Sashelp.LeuTest data sets provide microarray data from Zou and Hastie (2005).
The Sashelp.LeuTrain data set consists of 7129 genes and 38 training samples, and the Sashelp.LeuTest data
set consists of the same 7129 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). These data are not displayed because of the number of variables.

80 F Chapter 1: Sashelp Data Sets

Sashelp.ltheme
The following steps display information about the data set Sashelp.ltheme and create Figure 1.51. The data
set contains 13 observations.
title "Sashelp.ltheme";
proc contents data=sashelp.ltheme varnum;
ods select position;
run;
title "The First Five Observations Out of 13";
proc print data=sashelp.ltheme(obs=5) heading=h noobs;
run;

Figure 1.51 Sashelp.ltheme


Sashelp.ltheme
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2

CFCC
NAME

Char
Char

1
21

Label

LANDMARKS

The First Five Observations Out of 13


CFCC
V
Z
Y
a
b

NAME
Housing Unit
Prison
Hospital
Church
Educational

Sashelp.macrs10 F 81

Sashelp.macrs10
The Sashelp.macrs10 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs10 and create Figure 1.52. The data set contains 11 observations.
title "Sashelp.macrs10";
proc contents data=sashelp.macrs10 varnum;
ods select position;
run;
title "The First Five Observations Out of 11";
proc print data=sashelp.macrs10(obs=5) heading=h noobs;
run;

Figure 1.52 Sashelp.macrs10


Sashelp.macrs10
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

Len
8
8

The First Five Observations Out of 11


YEAR
1
2
3
4
5

RATE
10.00
18.00
14.40
11.52
9.22

82 F Chapter 1: Sashelp Data Sets

Sashelp.macrs15
The Sashelp.macrs15 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs15 and create Figure 1.53. The data set contains 16 observations.
title "Sashelp.macrs15";
proc contents data=sashelp.macrs15 varnum;
ods select position;
run;
title "The First Five Observations Out of 16";
proc print data=sashelp.macrs15(obs=5) heading=h noobs;
run;

Figure 1.53 Sashelp.macrs15


Sashelp.macrs15
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

Len
8
8

The First Five Observations Out of 16


YEAR
1
2
3
4
5

RATE
5.00
9.50
8.55
7.70
6.93

Sashelp.macrs20 F 83

Sashelp.macrs20
The Sashelp.macrs20 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs20 and create Figure 1.54. The data set contains 21 observations.
title "Sashelp.macrs20";
proc contents data=sashelp.macrs20 varnum;
ods select position;
run;
title "The First Five Observations Out of 21";
proc print data=sashelp.macrs20(obs=5) heading=h noobs;
run;

Figure 1.54 Sashelp.macrs20


Sashelp.macrs20
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

Len
8
8

The First Five Observations Out of 21


YEAR
1
2
3
4
5

RATE
3.750
7.219
6.677
6.177
5.713

84 F Chapter 1: Sashelp Data Sets

Sashelp.macrs3
The Sashelp.macrs3 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs3 and create Figure 1.55. The data set contains 4 observations.
title "Sashelp.macrs3";
proc contents data=sashelp.macrs3 varnum;
ods select position;
run;
title "The Full Data Set";
proc print data=sashelp.macrs3 heading=h noobs;
run;

Figure 1.55 Sashelp.macrs3


Sashelp.macrs3
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

The Full Data Set


YEAR
1
2
3
4

RATE
33.33
44.45
14.81
7.41

Len
8
8

Sashelp.macrs5 F 85

Sashelp.macrs5
The Sashelp.macrs5 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs5 and create Figure 1.56. The data set contains 6 observations.
title "Sashelp.macrs5";
proc contents data=sashelp.macrs5 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.macrs5(obs=5) heading=h noobs;
run;

Figure 1.56 Sashelp.macrs5


Sashelp.macrs5
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

Len
8
8

The First Five Observations Out of 6


YEAR
1
2
3
4
5

RATE
20.00
32.00
19.20
11.52
11.52

86 F Chapter 1: Sashelp Data Sets

Sashelp.macrs7
The Sashelp.macrs7 data set provides a year and rate variable. The following steps display information
about the data set Sashelp.macrs7 and create Figure 1.57. The data set contains 8 observations.
title "Sashelp.macrs7";
proc contents data=sashelp.macrs7 varnum;
ods select position;
run;
title "The First Five Observations Out of 8";
proc print data=sashelp.macrs7(obs=5) heading=h noobs;
run;

Figure 1.57 Sashelp.macrs7


Sashelp.macrs7
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

YEAR
RATE

Num
Num

Len
8
8

The First Five Observations Out of 8


YEAR
1
2
3
4
5

RATE
14.29
24.49
17.49
12.49
8.93

Sashelp.margarin Margarine Purchase Data F 87

Sashelp.margarin Margarine Purchase Data


The Sashelp.Margarin data set is a scanner panel data set that lists purchases of margarine. There are 313
households and a total of 3,405 purchases. The variable HouseID represents the household ID; each household
made at least five purchases, which are defined by the choice set variable Set. The variable Choice represents
the choice that households made among the six margarine brands for each purchase or choice set. The
variable Brand has the value PPK for Parkay stick, PBB for Blue Bonnet stick, PFL for Fleischmanns
stick, PHse for the house brand stick, PGen for the generic stick, and PSS for Shedds Spread tub.
The variable LogPrice is the logarithm of the product price. The variables LogInc and FamSize provide
information about household income and family size, respectively. The following steps display information
about the data set Sashelp.margarin and create Figure 1.58. The data set contains 20,430 observations.
title "Sashelp.margarin --- Margarine Purchase Data";
proc contents data=sashelp.margarin varnum;
ods select position;
run;
title "The First Five Observations Out of 20430";
proc print data=sashelp.margarin(obs=5) heading=h noobs;
run;

Figure 1.58 Sashelp.margarin Margarine Purchase Data


Sashelp.margarin --- Margarine Purchase Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7

HouseID
Set
Choice
Brand
LogPrice
LogInc
FamSize

Num
Num
Num
Char
Num
Num
Num

8
8
8
8
8
8
8

The First Five Observations Out of 20430

HouseID

Set

2100016
2100016
2100016
2100016
2100016

1
1
1
1
1

Choice
1
0
0
0
0

Brand

LogPrice

LogInc

Fam
Size

PPk
PBB
PFl
PHse
PGen

-0.41552
-0.40048
0.08618
-0.56212
-1.02165

3.48124
3.48124
3.48124
3.48124
3.48124

2
2
2
2
2

88 F Chapter 1: Sashelp Data Sets

Sashelp.mdv Sales Data and Forecast


The Sashelp.mdv data set provides sales data and forecast. The following steps display information about the
data set Sashelp.mdv and create Figure 1.59. The data set contains 128 observations.
title "Sashelp.mdv --- Sales Data and Forecast";
proc contents data=sashelp.mdv varnum;
ods select position;
run;
title "The First Five Observations Out of 128";
proc print data=sashelp.mdv(obs=5) heading=h noobs;
run;

Figure 1.59 Sashelp.mdv Sales Data and Forecast


Sashelp.mdv --- Sales Data and Forecast
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10
11
12
13
14

CODE
ORIGCITY
COUNTRY
TYPE
CITY
COMPANY
SHIPDATE
SALES94
MONTH
YEAR
SALES93
SALES95
_4CAST96
DAY

Char
Char
Char
Char
Char
Char
Num
Num
Num
Num
Num
Num
Num
Num

10
8
14
14
14
50
8
8
8
8
8
8
8
8

Format

Informat

$30.
DATE7.
COMMA10.2

DATE.

COMMA10.2
COMMA10.2
COMMA10.2

Sashelp.mdv Sales Data and Forecast F 89

Figure 1.59 continued


The First Five Observations Out of 128
CODE

ORIGCITY

COUNTRY

TYPE

CITY

COMPANY

NEXT DAY
NEXT DAY
SECOND DAY
THIRD DAY
SECOND DAY

LONDON
LONDON
SAN FRAN
NEW YORK
SYDNEY

AUSTRALIA
AUSTRALIA
AUSTRALIA
AUSTRALIA
AUSTRALIA

MD11
DC10
A300
MD11
DC10

ACTON
ACTON
ACTON
MELBOURNE
MELBOURNE

OUTWAY COMPANY
AUSTRALIAN WAY HOSPITAL
NATIONAL GROVE UNIVERSITY
STATE INCOME OFFICE
MELROSE TECH

SHIPDATE

SALES94

20APR95
22APR95
03DEC95
09SEP95
22NOV95

523.24
523.24
523.24
1,170.00
251.29

MONTH
4
4
12
9
11

YEAR

SALES93

SALES95

_4CAST96

DAY

1995
1995
1995
1995
1995

288.24
499.24
198.24
529.00
628.71

1,500.24
804.24
1,308.24
1,596.00
1,178.29

1,660.57
874.62
1,340.82
1,876.61
1,320.58

20
22
3
9
22

90 F Chapter 1: Sashelp Data Sets

Sashelp.mileages Flying Mileages Between Ten US Cities


The Sashelp.Mileages data set contains a table of flying mileages between 10 US cities. This data set
is frequently used to illustrate cluster analysis and multidimensional scaling. The following steps display
information about the data set Sashelp.mileages and create Figure 1.60. The data set contains 10 observations.
title "Sashelp.mileages --- Flying Mileages Between Ten US Cities";
proc contents data=sashelp.mileages varnum;
ods select position;
run;
title "The First Five Observations Out of 10";
proc print data=sashelp.mileages(obs=5) heading=h noobs;
run;

Figure 1.60 Sashelp.mileages Flying Mileages Between Ten US Cities


Sashelp.mileages --- Flying Mileages Between Ten US Cities
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11

Variable

Type

Len

Atlanta
Chicago
Denver
Houston
LosAngeles
Miami
NewYork
SanFrancisco
Seattle
WashingtonDC
City

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Char

8
8
8
8
8
8
8
8
8
8
15

The First Five Observations Out of 10


Los
New
San
Washington
Atlanta Chicago Denver Houston Angeles Miami York Francisco Seattle
DC
City
0
587
1212
701
1936

.
0
920
940
1745

.
.
0
879
831

.
.
.
0
1374

.
.
.
.
0

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

Atlanta
Chicago
Denver
Houston
Los Angeles

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 91

Sashelp.mon1001 M-Competition 1001 Series, Monthly


The Sashelp.mon1001 data set provides m-competition 1001 series, monthly. The following steps display information about the data set Sashelp.mon1001 and create Figure 1.61. The data set contains 132
observations.
title "Sashelp.mon1001 --- M-Competition 1001 Series, Monthly";
proc contents data=sashelp.mon1001 varnum;
ods select position;
run;
title "The First Five Observations Out of 132";
proc print data=sashelp.mon1001(obs=5) heading=h noobs;
run;

92 F Chapter 1: Sashelp Data Sets

Figure 1.61 Sashelp.mon1001 M-Competition 1001 Series, Monthly


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Variable

Type

T
S0387
S0388
S0389
S0390
S0391
S0393
S0394
S0395
S0396
S0397
S0398
S0401
S0403
S0404
S0405
S0406
S0407
S0409
S0410
S0412
S0413
S0414
S0415
S0416
S0417
S0418
S0419
S0420
S0421
S0422
S0423
S0426
S0427
S0428
S0429
S0434
S0435
S0436
S0437
S0438
S0439
S0440
S0441
S0442
S0444
S0445
S0446
S0448
S0449
S0450
S0451

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 93

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

Variable

Type

S0452
S0453
S0454
S0455
S0456
S0457
S0458
S0459
S0460
S0461
S0462
S0463
S0464
S0465
S0466
S0467
S0468
S0469
S0470
S0471
S0472
S0473
S0474
S0475
S0476
S0477
S0479
S0480
S0481
S0486
S0487
S0488
S0489
S0490
S0491
S0492
S0493
S0495
S0496
S0497
S0498
S0499
S0501
S0503
S0504
S0505
S0506
S0507
S0508
S0509
S0510
S0511

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

94 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

Variable

Type

S0512
S0513
S0514
S0515
S0516
S0520
S0521
S0522
S0523
S0524
S0525
S0526
S0527
S0528
S0529
S0533
S0534
S0536
S0537
S0538
S0539
S0540
S0541
S0542
S0543
S0544
S0545
S0546
S0547
S0548
S0552
S0554
S0557
S0559
S0560
S0562
S0563
S0565
S0566
S0567
S0569
S0570
S0571
S0572
S0573
S0574
S0575
S0576
S0577
S0578
S0579
S0580

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 95

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208

Variable

Type

S0581
S0584
S0585
S0587
S0588
S0589
S0590
S0591
S0592
S0593
S0594
S0595
S0596
S0597
S0598
S0599
S0600
S0601
S0605
S0606
S0607
S0608
S0609
S0610
S0611
S0613
S0614
S0615
S0616
S0617
S0618
S0619
S0620
S0621
S0622
S0623
S0624
S0625
S0626
S0627
S0628
S0629
S0630
S0631
S0632
S0633
S0634
S0635
S0640
S0641
S0642
S0643

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

96 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260

Variable

Type

S0644
S0645
S0646
S0647
S0648
S0649
S0652
S0653
S0655
S0657
S0658
S0659
S0661
S0662
S0663
S0664
S0665
S0667
S0668
S0669
S0670
S0671
S0672
S0673
S0674
S0675
S0676
S0678
S0680
S0681
S0683
S0684
S0687
S0688
S0690
S0692
S0694
S0695
S0697
S0698
S0699
S0700
S0701
S0702
S0703
S0704
S0705
S0706
S0710
S0712
S0714
S0715

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 97

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312

Variable

Type

S0716
S0718
S0731
S0732
S0733
S0734
S0735
S0736
S0737
S0738
S0739
S0740
S0741
S0742
S0743
S0744
S0745
S0746
S0747
S0748
S0749
S0750
S0751
S0752
S0753
S0754
S0755
S0756
S0757
S0758
S0759
S0760
S0761
S0762
S0763
S0765
S0766
S0767
S0768
S0769
S0770
S0771
S0780
S0783
S0784
S0785
S0786
S0787
S0789
S0790
S0791
S0792

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

98 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364

Variable

Type

S0793
S0794
S0795
S0796
S0798
S0799
S0800
S0801
S0802
S0803
S0811
S0822
S0825
S0826
S0835
S0840
S0841
S0842
S0847
S0850
S0851
S0852
S0853
S0854
S0857
S0859
S0860
S0861
S0862
S0864
S0865
S0866
S0867
S0868
S0869
S0871
S0872
S0873
S0875
S0876
S0877
S0878
S0879
S0897
S0898
S0899
S0900
S0901
S0903
S0904
S0905
S0906

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 99

Figure 1.61 continued


Sashelp.mon1001 --- M-Competition 1001 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407

Variable

Type

S0907
S0908
S0909
S0910
S0911
S0912
S0913
S0914
S0927
S0931
S0932
S0933
S0934
S0936
S0937
S0938
S0939
S0940
S0952
S0953
S0954
S0955
S0956
S0957
S0958
S0978
S0980
S0981
S0982
S0983
S0984
S0985
S0986
S0990
S0991
S0992
S0993
S0994
S0995
S0997
S0998
S0999
S1001

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

100 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


The First Five Observations Out of 132
T S0387 S0388
1
2
3
4
5

409
419
339
421
474

3334
3363
3395
3831
3292

S0404

S0389

S0390

33.6576
30.9665
38.0410
37.3077
33.8624

S0405

341
793
1687
2477
2007

S0406

S0391 S0393 S0394 S0395


117497 3341 5237
153276 4352 3612
241443 9148 4385
218709 11714 6479
202896 10878 13286
S0407

105
117
128
149
179

692
696
809
886
835

S0439
8892.00
8821.00
9799.65
9846.77
10890.20

676
667
711
775
706

13224
14302
17824
20295
19384

S0442

244.893
244.893
255.901
230.992
238.291

573.768
638.439
679.047
648.215
534.665

11184
12094
11542
10245
9031

4742.66
5061.20
5627.49
5388.58
5468.22

2783.70
3746.94
6404.38
5074.96
4526.14

S0464

S0465

S0455

4514.25
5481.76
4837.56
4656.60
4311.58

S0466
126754
131824
133024
139420
141575

890
984
2440
4124
3197
S0428

S0444

23.9000
23.3000
18.1000
21.6000
32.4000

13.9000
10.0000
6.6000
10.4000
11.4000

198
212
154
131
181

867
638
926
964
709

264
234
234
248
271

S0429

S0445

32
28
30
25
32

S0457

25857
27845
27205
27612
14103

S0446

288.734
262.668
296.755
262.668
326.831
S0467

2027.43
1892.26
2041.41
1966.84
1938.87

S0458

27366.59
27311.59
29605.19
26610.19
26792.00
S0468

16180.40
14346.20
15686.70
14983.00
14837.59

18964.59
19730.69
22483.19
18554.59
14497.50

670
634
655
658
729

S0401

S0403

43.2000 12908.40
44.8000 11486.20
43.1000 10930.80
41.9000 9801.45
44.4000 6128.94

796
881
891
977
894

S0434 S0435 S0436


1264
1150
1384
1651
1374

S0448

29.8000 90000 3672.76 2064.54


27.3000 87000 3464.47 1996.29
37.1000 111000 3239.43 2252.22
41.3000 108000 3353.19 2195.35
38.3000 77000 3381.60 2178.29

S0456

52075.59
53003.88
60964.88
57644.28
57789.59

S0398

13224.00 7546 7546.00


14404.20 8105 8162.89
17824.00 9750 9750.00
20295.00 10610 10610.00
19384.00 10484 10484.00

S0441

S0454

443
469
251
286
342

S0427

S0440

S0453

10076.20
9639.31
10330.09
10934.90
11559.90

587
634
600
664
633

S0397

S0409 S0410 S0412 S0413 S0414 S0415 S0416 S0417 S0418 S0419

9223.61 10368.20 2356.89 34.5600


8621.12 9479.09 2042.34 31.8699
10519.20 11166.30 1065.32 39.3560
9580.23 10103.30 2321.67 36.2121
6334.12 6652.24 539.57 33.0508
S0420 S0421 S0422 S0423 S0426

1807
1702
1760
1675
1701

S0396

2107
2097
2135
2165
2205

2276
2106
2190
2017
2244

S0438

37.4000
33.6000
46.0000
57.6000
46.2000

31120.59
31120.59
31794.69
28286.09
29434.19

S0449

S0450

4618.28
4759.95
6029.44
4597.24
3919.20

6419.94
5692.17
6224.04
5944.83
5887.16

S0451

S0461

S0462

144.634
134.772
149.564
139.703
161.069

1287.41
1339.45
1428.24
1422.12
1220.05

5800.54
5900.04
6295.79
6709.63
6397.55

395.884
509.216
844.553
639.625
878.708

S0471

S0472

5732.77
5658.64
6029.29
6572.92
5988.11

1081.98
1239.20
1505.19
1538.85
1215.61

14645.20
23412.30
41736.59
45624.19
42416.09

2496.26
2485.05
2639.59
2649.48
2313.73

S0452

13936.09
14330.50
19923.00
19040.89
16874.00

S0460

S0470

677
667
711
775
706

S0437

S0459

S0469

403
372
381
465
402

695.041
686.392
731.084
797.208
726.125

S0463
12344.00
13970.70
13587.90
13109.50
12152.59

S0473 S0474 S0475


6484
7083
7539
5078
4043

1871
2272
2005
1930
1787

51560
44555
52185
49913
42271

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 101

Figure 1.61 continued


The First Five Observations Out of 132
S0476 S0477 S0479 S0480 S0481 S0486 S0487 S0488
8458
7323
7796
7339
6650
S0496
834.055
809.374
840.438
820.438
809.374

490
1030
930
754
690

184
370
379
268
245

876
1653
1280
1226
1133

S0528

10713
12843
20673
18157
17551

464
347
581
624
590

9904
10084
14000
12296
11439

S0490

387.000
403.000
471.100
389.100
396.300

292.900
297.900
351.400
286.500
293.500

S0491

S0492

S0493

S0495

60.4000 85.600 3738.30 329131


60.8000 86.500 3162.30 334465
77.8000 101.800 2522.70 377928
60.9000 81.200 2065.30 345469
62.1000 85.800 1954.80 362411

S0497 S0498 S0499 S0501 S0503 S0504 S0505 S0506 S0507 S0508 S0509 S0510 S0511 S0512
6910
7035
7717
6651
7304

5231
5349
5903
5108
5634

780
815
929
851
921

S0513 S0514 S0515 S0516


2219
1964
2164
2282
2289

24
77
54
43
14

S0489

461
959
1113
1465
1130

420
840
986
1327
1093

S0529

68
63
74
71
74

1348
1266
1345
1254
1370

24
83
140
166
163

7184
7201
7395
7457
7784

9584.80
10440.09
11640.59
10627.90
10213.30

33
38
40
37
37

S0545

S0546

S0547

260.641
265.792
250.651
264.962
267.002

123.753
124.859
127.210
133.121
137.856

205.471
215.323
204.572
212.627
208.271

S0567

S0569

S0570

5096.30 921.19 57.4853


5378.42 850.35 53.7925
6109.78 870.03 53.2551
5924.60 1063.10 51.6254
5130.37 919.45 50.8389

13858
14919
15451
14760
16263

2876
3175
3295
3085
3793

13858
14919
15451
14760
16263

69
239
341
350
432

2613
2629
2606
2774
2606

950
1205
1226
1083
1212

1193
1202
1305
1223
1321

S0520

S0521

S0522

S0523

S0524

S0525

S0526

S0527

11072.90
10903.30
11927.30
11097.70
11011.30

48238.19
52827.09
61600.19
42265.69
41705.59

1656.32
1593.20
1572.03
1347.01
1535.81

5122.23
5656.23
6885.36
6103.71
5939.05

17104.19
14984.00
21199.89
21409.50
17012.80

1210.38
1350.64
1470.77
1719.11
2065.77

1759.81
1912.56
2171.54
2191.08
1804.54

17686.09
21199.69
24896.50
16016.30
15269.30

S0538

S0539

S0540

S0541

S0542

S0543

S0544

77.0173
79.8517
72.7308
69.8962
73.1457

103.427
103.151
99.867
103.738
104.741

66.4395
63.8469
65.7134
68.9975
74.6666

145.047
140.035
138.479
139.758
144.528

90.6368
91.1207
89.4960
87.5602
90.6713

102.701
113.175
110.306
110.479
109.234

151.511
148.884
148.192
144.459
146.740

S0565

S0566

S0533 S0534 S0536 S0537

1702.22
1590.88
1717.20
1640.12
1657.25

420
840
986
1327
1093

60
147
147
106
113

254
237
283
300
273

189
163
224
281
221

S0548 S0552
2561
2974
2724
2983
3426

4472
5351
6366
4927
4940

S0571
23746.89
23746.89
27454.09
23829.30
24712.59

S0554 S0557 S0559


467214 8263
197073 7803
261792 10150
132044 11288
161976 10933

S0572
4961.82
5856.50
6205.32
4853.29
4476.57

S0573
13251.40
11529.59
12298.20
11006.90
10099.90

S0560

S0562

S0563

1424 107.600 7.50000 17.8000 22910.89 543.752


1666 105.500 6.40000 18.5000 22911.59 456.279
2175 102.500 7.00000 18.0000 26539.39 527.203
1690 99.200 6.70000 17.4000 25068.09 583.942
1106 99.400 5.50000 16.2000 27748.00 581.578
S0574
16485.09
14040.80
14487.59
13268.50
13578.09

S0575
13805.20
14915.59
16819.00
14124.30
9562.55

S0576
60190.69
60238.38
69407.25
56226.09
50286.00

S0577

S0578

3009.00
2995.48
3181.77
3193.69
2788.98

1129.07
4395.96
8356.95
6154.35
9032.55

102 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


The First Five Observations Out of 132
S0579

S0580

S0581

S0584

S0585

S0587

S0588

7850.63
7273.40
8055.33
8092.68
6288.62

2916.44
2901.56
3299.59
2927.60
2830.88

654.054
778.986
683.450
734.893
712.846

45.8140
50.8030
57.8190
79.1130
88.3730

139.000
125.500
128.700
137.100
111.000

1259.13
1337.83
1416.52
1259.13
1101.74

12480.70
12285.00
12325.00
12269.40
12327.20

S0594

S0595

S0596

S0597

S0598

S0599

79.9000
79.5000
96.1000
84.6000
76.3000

246.900
240.300
284.800
255.200
244.600

61.0000
61.1000
59.1000
62.1000
54.8000

63.1000
64.9000
67.3000
72.8000
65.4000

140
134
144
140
139

0.94000
1.12000
1.02000
1.20000
1.17000

S0610 S0611 S0613 S0614 S0615


5520
4855
5123
5160
4933

2597
2377
2513
2364
2454

S0624

112
115
115
122
119

625
615
559
660
708

S0625

103
110
109
115
111

S0626

2163
2184
2367
2393
2556

S0591

S0592

3986 987.63 2.81500 10.2400


4175 941.24 2.67200 10.7500
4175 1089.15 2.75500 11.6200
4500 940.57 2.72100 12.2200
4625 962.08 2.94600 10.4800

S0601

S0593
57.7000
55.7000
66.1000
61.3000
61.6000

S0605 S0606 S0607 S0608 S0609

39.9000 5.1400
39.2000 10.5000
39.5000 9.9400
41.8000 10.7300
42.5000 11.7100

84
87
88
98
104

109
110
112
113
120

90
102
99
108
109

101
107
102
108
116

1113
1023
1114
1059
1083

S0617

S0618

S0619

S0620

S0621

S0622

S0623

1081.76
1080.11
1353.93
1326.56
1406.02

1893.49
1650.29
1785.79
1666.75
1622.50

1646.67
1512.32
1681.36
1400.34
1607.49

3507.98
3438.24
4446.06
4340.20
4535.20

8522.86
8007.64
8687.70
8931.27
7479.46

20265.59
20299.09
21739.39
19365.89
19588.30

9127.33
14356.00
16131.90
15291.09
12001.40

148.894
242.811
371.088
475.314
503.947

67227
60968
65889
63394
65381

S0616

221
241
290
266
268

102
104
102
106
107

112
113
116
116
122

S0643 S0644 S0645 S0646 S0647 S0648


1068
947
1307
1363
1279

S0590

S0627 S0628 S0629 S0630 S0631 S0632 S0633 S0634 S0635 S0640 S0641

2478.62 96.988
2404.63 98.739
2413.13 103.708
2480.82 106.961
2826.67 110.265

3718
3476
3557
5128
5222

S0600

S0589

303
303
316
349
359

2753
2394
2742
2585
2581

946
924
1041
1085
1191

113
109
109
116
106

99
102
105
108
105

11960
10277
10596
12785
11135

6277
7547
7377
7660
7374

5052
5601
7054
5293
5216

580
467
354
255
164

66610
93465
88519
88317
82991

55159
51520
24988
40925
50270

S0642
258.100
205.600
205.500
211.100
234.000

S0649

S0652

S0653

S0655

S0657

S0658

S0659

14.6200
13.4200
13.5900
14.4500
13.4100

0.86000
2.09000
2.06000
2.05000
2.08000

3.23000
2.71000
2.67000
2.99000
2.71000

42.1000
45.1000
44.1000
43.2000
45.7000

26.5000
23.9000
26.5000
26.8000
24.3000

2.64000
2.37000
2.42000
2.66000
3.32000

0.52000
0.59000
0.94000
0.88000
1.08000

S0661

S0662

S0663

S0664

S0665

S0667

S0668

S0669

S0670

S0671

S0672

S0673

2.65000
2.35000
2.51000
2.59000
2.44000

1.64000
1.53000
1.94000
1.83000
1.96000

6.0400
10.0100
10.6600
10.2100
11.1700

4.75000
4.37000
4.76000
4.53000
4.70000

77.5000
77.3000
74.8000
69.3000
77.9000

2.26000
2.34000
2.58000
2.45000
2.81000

0.60000
0.90000
1.07000
1.09000
1.14000

1.23000
1.13000
1.25000
1.18000
1.22000

0.74000
1.41000
1.49000
1.45000
1.55000

6.87000
7.03000
7.67000
7.41000
7.22000

2.92000
3.29000
3.46000
3.47000
3.06000

1546
1567
1487
1363
1320

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 103

Figure 1.61 continued


The First Five Observations Out of 132
S0674

S0675

S0676

S0678

S0680

S0681

S0683

584
616
628
713
687

117.100
126.900
120.500
128.700
133.700

17.9000
20.9000
23.8000
28.1000
24.4000

8.98000
9.50000
9.27000
8.91000
9.24000

45.2000
44.3000
40.7000
44.2000
47.6000

95.1000
97.2000
94.1000
94.2000
98.8000

41.2000
35.8000
39.3000
41.7000
38.0000

S0697

S0698

S0703

S0704

S0705

S0706

S0710

S0712

S0714

19.4700
19.6300
18.0900
18.3000
17.5900

5.65000
5.65000
5.54000
5.71000
5.53000

8.14999
9.10000
6.16000
9.17000
9.41000

10.3600
10.2700
10.8200
12.1200
11.7800

38.2000
38.2000
38.3000
43.0000
42.7000

43.7000
41.6000
44.0000
42.4000
50.4000

9.28999
7.64000
6.63000
6.66000
7.95000

S0733

S0734

S0735

S0736

S0699 S0700 S0701 S0702

984 42.700
980 96.800
987 114.600
1000 121.800
1005 118.000

459
465
415
451
544

1451
1157
1501
1614
1577

485
456
452
428
422

S0715

S0716

S0718

S0731

9.6000
9.3000
15.0000
15.1000
15.3000

6.42000
5.13000
6.07000
6.06000
6.30000

125
727
736
391
633

35.6000
39.7000
39.7000
38.0000
38.8000

S0741 S0742 S0743 S0744


16112
16749
16885
18241
18945

3362
3572
3718
4174
4482

978
1318
1522
1637
1768

1662
1849
1994
2138
2269

S0756

S0757

S0758

29.5000
37.5000
38.9000
42.0000
41.2000

206
203
259
335
310

162.900
177.300
201.200
252.100
234.100

305
313
286
344
329
S0732

S0684 S0687 S0688 S0690 S0692 S0694 S0695


550
541
553
545
539

34.1500 38.200 14.0100 17.6000


31.9600 74.400 14.3300 17.2000
28.7200 102.600 12.3100 23.5000
35.3200 99.900 13.7900 23.1000
33.2900 102.000 12.7700 25.4000

S0745

S0746

S0747

S0748

S0749

143.600
161.000
163.600
181.300
170.000

589
614
631
783
777

128.700
177.900
219.700
246.000
238.900

398
430
486
577
582

79.900
86.100
76.400
93.000
103.400

S0759 S0760 S0761 S0762 S0763


530
534
588
745
771

423
374
402
443
437

13871
13255
15013
12413
12752

251
236
249
267
257

15255
16047
15097
16079
14926

13991
15370
13445
15242
14992

603
577
575
565
406

938
918
891
910
752

720
700
684
681
669

616
594
575
600
568

S0737 S0738 S0739 S0740

2.29000
4.31000
4.72000
4.34000
5.01000

5892
5618
5158
5030
4800

2433
2533
2341
2268
2288

2357
2572
2775
3012
3042

73
74
75
77
79

78
76
77
77
81

88
86
90
92
96

66
70
72
73
76

70
72
75
76
82

60
63
65
66
66

79
66
76
76
82

1717
1792
1746
1830
1828

S0750 S0751 S0752 S0753 S0754 S0755


5675
5725
5217
5310
5745

12193
11439
12410
13556
11063

8806
8860
8322
8012
7892

16120
16523
15768
15516
14903

3149
4305
5110
4797
3991

305
337
399
324
351

S0765

S0766

S0767

S0768

S0769

S0770

5.23982
5.24898
5.26931
5.15463
5.15463

595.492
558.273
597.681
567.031
569.220

1894.90
1770.95
1911.58
1825.77
1844.84

101
144
112
118
132

613.840
550.320
636.880
812.320
780.720

2079
1952
1941
2311
3035

S0771 S0780 S0783 S0784 S0785 S0786 S0787 S0789 S0790 S0791 S0792 S0793 S0794 S0795
77
78
78
79
79

348
347
339
324
310

76
83
84
73
75

66
82
71
73
68

73
80
69
80
71

103
90
101
90
99

100
90
93
96
90

89
88
93
96
96

S0796
0.28000
0.28000
0.33000
0.50000
0.45000

104 F Chapter 1: Sashelp Data Sets

Figure 1.61 continued


The First Five Observations Out of 132
S0798 S0799 S0800 S0801 S0802
105
104
98
105
107

75
77
77
78
78

83
86
86
89
90

85
88
87
90
91

65
66
67
68
68

S0803

S0811

105.100
97.100
95.800
103.400
107.500

104.900
102.500
107.900
116.400
120.700

S0847 S0850 S0851 S0852 S0853 S0854 S0857


128
126
129
130
125

170
102
91
109
103

485
528
653
577
575

S0868

S0869

128
134
133
141
134

447.600
454.300
458.700
462.100
443.000

S0901

544
558
679
562
619

77
81
90
89
92

S0871 S0872
996
1148
1225
1188
1492

1275
1578
1477
1403
1982

1557
1467
1653
1484
1507

S0873

131
127
131
126
127

97
97
98
102
100

96
97
99
100
102

97
98
101
101
104

S0927

S0931

S0932

3.37417
3.08649
2.97041
2.68785
1.88707

14959
18418
19865
40349
16985

23.3700
21.0200
24.3900
23.7900
25.7500

S0933

83
100
90
94
93
S0860

2.87000
3.07000
2.97000
3.22000
2.88000

115.900
116.000
123.300
123.000
123.000

77
99
98
79
71

S0835

S0840

S0841

S0842

96.730
123.940
111.000
112.880
93.420

400
372
431
425
439

3.80000
2.91000
2.96000
2.71000
4.13000

0.77000
2.99000
3.42000
2.45000
4.05000

S0861 S0862 S0864 S0865 S0866


442
368
457
656
677

153
128
138
138
139

134
126
135
140
143

S0875 S0876 S0877 S0878 S0879 S0897 S0898

82.6000
84.5000
84.6000
81.6000
84.2000

102
102
101
103
103

54
78
77
76
76

S0859

42
46
50
48
50

36
40
44
45
48

S0903 S0904 S0905 S0906 S0907 S0908

2.19800
2.30800
2.54600
2.95500
2.75400

S0822 S0825 S0826

102
102
101
103
103
S0934

14.6000 11.7000
11.7000 9.2000
11.0000 8.6000
10.6000 8.2000
10.0000 7.7000

67
73
74
79
84

70
68
72
73
79

103
106
104
106
107

3667
2649
2544
3064
3063

S0909

S0910

S0911

101
107
110
98
101

80.8000
82.5000
83.5000
81.5000
84.3000

86
87
87
93
92

S0936

S0937

S0938

S0939

309
280
263
244
247

27.2100
33.8300
38.7400
29.4600
27.9500

24.1000
31.3200
35.9600
26.4000
25.0500

31.1700
14.6400
14.9000
16.3600
18.1200

99
98
97
94
94

S0912

86.4000 904.00
89.6000 914.70
87.3000 926.40
79.8000 985.50
85.6000 1010.00

172
118
126
126
142

134
105
115
118
120

S0867
102.060
100.780
100.620
98.210
98.130

S0899

S0900

203.300
211.700
210.900
224.800
221.400

339.900
327.200
333.500
340.800
369.200

S0913

S0914

2.62000
3.08000
3.06000
3.12000
3.54000

34.6000
36.5500
36.4500
35.0400
39.1100

S0940

S0952

27.0600 0.6070
12.8100 1.0470
13.3100 3.3580
14.2000 7.3920
16.1800 15.5450

S0953 S0954
96326
106430
101585
117653
128520

80719
81283
81690
81960
81741

S0955 S0956 S0957 S0958 S0978 S0980 S0981 S0982 S0983 S0984 S0985 S0986 S0990 S0991 S0992 S0993
77313
77489
77957
78408
78357

2869
2909
3094
3287
3531

76324
76458
77101
77339
77692

5447
5412
5215
4697
4344

693
677
477
570
545

667
653
591
568
518

531
540
496
472
438

156
154
181
198
210

60
55
59
106
71

26962
29191
10450
45958
32069

159
194
23
182
160

4682
4917
4711
6542
10323

3318 8989
3109 10498
3795 8898
3333 8799
3287 8355

1170 6279
1688 8371
1790 11963
2415 14490
1679 12875

Sashelp.mon1001 M-Competition 1001 Series, Monthly F 105

Figure 1.61 continued


The First Five Observations Out of 132
S0994

S0995

S0997

S0998

S0999

S1001

23104
30479
32670
38568
57017

1107
1179
1706
1802
2222

3928
4830
4926
6465
8588

33
28
40
31
36

26.0000
24.5000
27.9000
29.1000
34.7000

45
28
37
29
15

106 F Chapter 1: Sashelp Data Sets

Sashelp.mon111 M-Competition 111 Series, Monthly


The Sashelp.mon111 data set provides m-competition 111 series, monthly. The following steps display information about the data set Sashelp.mon111 and create Figure 1.62. The data set contains 124 observations.
title "Sashelp.mon111 --- M-Competition 111 Series, Monthly";
proc contents data=sashelp.mon111 varnum;
ods select position;
run;
title "The First Five Observations Out of 124";
proc print data=sashelp.mon111(obs=5) heading=h noobs;
run;

Sashelp.mon111 M-Competition 111 Series, Monthly F 107

Figure 1.62 Sashelp.mon111 M-Competition 111 Series, Monthly


Sashelp.mon111 --- M-Competition 111 Series, Monthly
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Variable

Type

T
S391
S409
S418
S427
S436
S445
S454
S463
S472
S481
S490
S499
S508
S526
S544
S562
S571
S580
S589
S598
S607
S616
S625
S634
S643
S652
S661
S670
S688
S697
S706
S715
S733
S742
S751
S760
S769
S787
S796
S841
S850
S859
S868
S877
S904
S913
S931
S940
S958
S985
S994

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

108 F Chapter 1: Sashelp Data Sets

Figure 1.62 continued


The First Five Observations Out of 124
T

S391

1
2
3
4
5

117497
153276
241443
218709
202896

443
469
251
286
342

S526

S544

1759.81
1912.56
2171.54
2191.08
1804.54
S661
2.65000
2.35000
2.51000
2.59000
2.44000
S841
3.80000
2.91000
2.96000
2.71000
4.13000

S409 S418
403
372
381
465
402

151.511
148.884
148.192
144.459
146.740
S670
0.74000
1.41000
1.49000
1.45000
1.55000
S850
170
102
91
109
103

S427

S436

13224.00
14404.20
17824.00
20295.00
19384.00
S562

7.50000
6.40000
7.00000
6.70000
5.50000

S445

S463

2107 90000 2783.70 12344.00


2097 87000 3746.94 13970.70
2135 111000 6404.38 13587.90
2165 108000 5074.96 13109.50
2205 77000 4526.14 12152.59

S571

S580

23746.89
23746.89
27454.09
23829.30
24712.59

12480.70
12285.00
12325.00
12269.40
12327.20

S688 S697

S454

S706

S715

S589 S598 S607


3986
4175
4175
4500
4625

140
134
144
140
139

S733

603 984 10.3600 9.6000 38.200


577 980 10.2700 9.3000 74.400
575 987 10.8200 15.0000 102.600
565 1000 12.1200 15.1000 99.900
406 1005 11.7800 15.3000 102.000
S859
2.87000
3.07000
2.97000
3.22000
2.88000

S868

S877

S904

128
134
133
141
134

67
73
74
79
84

96
97
99
100
102

90
102
99
108
109

S472

S481

S490

2496.26
2485.05
2639.59
2649.48
2313.73

24
77
54
43
14

292.900
297.900
351.400
286.500
293.500

S616
1081.76
1080.11
1353.93
1326.56
1406.02

S625
2478.62
2404.63
2413.13
2480.82
2826.67

S742

S751

S760

3362
3572
3718
4174
4482

12193
11439
12410
13556
11063

13871
13255
15013
12413
12752

S913
2.62000
3.08000
3.06000
3.12000
3.54000

S931
14959
18418
19865
40349
16985

S499

S508

780
815
929
851
921

13858
14919
15451
14760
16263

S634 S643
5052
5601
7054
5293
5216

S769
613.840
550.320
636.880
812.320
780.720
S940

27.0600
12.8100
13.3100
14.2000
16.1800

3718
3476
3557
5128
5222

S787
60
63
65
66
66

S652
0.86000
2.09000
2.06000
2.05000
2.08000
S796

0.28000
0.28000
0.33000
0.50000
0.45000

S958

S985

S994

5447
5412
5215
4697
4344

159
194
23
182
160

23104
30479
32670
38568
57017

Sashelp.mwelect Midwest Electrical Supply Monthly Sales By Productgroup F 109

Sashelp.mwelect Midwest Electrical Supply Monthly Sales


By Productgroup
The Sashelp.mwelect data set provides midwest electrical supply monthly sales by product group. The
following steps display information about the data set Sashelp.mwelect and create Figure 1.63. The data set
contains 11,296 observations.
title "Sashelp.mwelect --- Midwest Electrical Supply Monthly Sales By Productgroup";
proc contents data=sashelp.mwelect varnum;
ods select position;
run;
title "The First Five Observations Out of 11296";
proc print data=sashelp.mwelect(obs=5) heading=h noobs;
run;

Figure 1.63 Sashelp.mwelect Midwest Electrical Supply Monthly Sales By Productgroup


Sashelp.mwelect --- Midwest Electrical Supply Monthly Sales By Productgroup
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

Date
ProductGroup
SalesRegion
SalesOffice
SalesInUsd
SalesCost
QuantityInvoiced
SKU

Num
Char
Char
Char
Num
Num
Num
Char

8
14
7
11
8
8
8
18

Format

Label

MONYY7.

Month
Product Group
Sales Region
Sales Office
Sales in USD
Cost of Goods Sold
Units Sold
Stock-keeping unit

COMMA10.2
COMMA9.2
7.
$CHAR18.

The First Five Observations Out of 11296

Date
JAN2001
FEB2001
MAR2001
APR2001
MAY2001

Product
Group

Sales
Region

Sales
Office

Electrical
Electrical
Electrical
Electrical
Electrical

East
East
East
East
East

Buffalo
Buffalo
Buffalo
Buffalo
Buffalo

SalesInUsd

SalesCost

975.18
324.20
1,948.74
.
342.12

1,015.81
341.20
2,047.14
.
348.40

Quantity
Invoiced
432
432
.
.
432

SKU
CPR
CPR
CPR
CPR
CPR

00108N
00108N
00108N
00108N
00108N

0400RI
0400RI
0400RI
0400RI
0400RI

110 F Chapter 1: Sashelp Data Sets

Sashelp.nvst1
The Sashelp.nvst1 data set provides investor transaction data. The following steps display information about
the data set Sashelp.nvst1 and create Figure 1.64. The data set contains 6 observations.
title "Sashelp.nvst1";
proc contents data=sashelp.nvst1 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.nvst1(obs=5) heading=h noobs;
run;

Figure 1.64 Sashelp.nvst1


Sashelp.nvst1
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-30000
7500
7500
7500
7500

Sashelp.nvst2 F 111

Sashelp.nvst2
The Sashelp.nvst2 data set provides investor transaction data. The following steps display information about
the data set Sashelp.nvst2 and create Figure 1.65. The data set contains 6 observations.
title "Sashelp.nvst2";
proc contents data=sashelp.nvst2 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.nvst2(obs=5) heading=h noobs;
run;

Figure 1.65 Sashelp.nvst2


Sashelp.nvst2
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-60000
13755
13755
13755
13755

112 F Chapter 1: Sashelp Data Sets

Sashelp.nvst3
The Sashelp.nvst3 data set provides investor transaction data. The following steps display information about
the data set Sashelp.nvst3 and create Figure 1.66. The data set contains 6 observations.
title "Sashelp.nvst3";
proc contents data=sashelp.nvst3 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.nvst3(obs=5) heading=h noobs;
run;

Figure 1.66 Sashelp.nvst3


Sashelp.nvst3
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-20000
5000
5000
5000
5000

Sashelp.nvst4 F 113

Sashelp.nvst4
The Sashelp.nvst4 data set provides investor transaction data. The following steps display information about
the data set Sashelp.nvst4 and create Figure 1.67. The data set contains 6 observations.
title "Sashelp.nvst4";
proc contents data=sashelp.nvst4 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.nvst4(obs=5) heading=h noobs;
run;

Figure 1.67 Sashelp.nvst4


Sashelp.nvst4
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-40000
10000
10000
10000
10000

114 F Chapter 1: Sashelp Data Sets

Sashelp.nvst5
The Sashelp.nvst5 data set provides investor transaction data. The following steps display information about
the data set Sashelp.nvst5 and create Figure 1.68. The data set contains 6 observations.
title "Sashelp.nvst5";
proc contents data=sashelp.nvst5 varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.nvst5(obs=5) heading=h noobs;
run;

Figure 1.68 Sashelp.nvst5


Sashelp.nvst5
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-30000
7500
7500
7500
7500

Sashelp.orsales Orion Star Sports & Outdoors Sales 1999 - 2002 F 115

Sashelp.orsales Orion Star Sports & Outdoors Sales 1999 2002


The Sashelp.orsales data set provides Orion star sports and outdoors sales 19992002. The following steps
display information about the data set Sashelp.orsales and create Figure 1.69. The data set contains 912
observations.
title "Sashelp.orsales --- Orion Star Sports & Outdoors Sales 1999 - 2002";
proc contents data=sashelp.orsales varnum;
ods select position;
run;
title "The First Five Observations Out of 912";
proc print data=sashelp.orsales(obs=5) heading=h noobs;
run;

title "The Product_Line Variable";


proc freq data=sashelp.orsales;
tables Product_Line;
run;

Figure 1.69 Sashelp.orsales Orion Star Sports & Outdoors Sales 1999 - 2002
Sashelp.orsales --- Orion Star Sports & Outdoors Sales 1999 - 2002
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

Year
Quarter
Product_Line
Product_Category
Product_Group
Quantity
Profit
Total_Retail_Price

Num
Char
Char
Char
Char
Num
Num
Num

8
6
20
25
25
8
8
8

Format

Label

4.

Year
Quarter
Product Line
Product Category
Product Group
Number of Items
Profit in USD
Total Retail Price in USD

6.
12.2
12.2

The First Five Observations Out of 912

Year Quarter

Product_
Line

1999
1999
1999
1999
1999

Children
Children
Children
Children
Children

1999Q1
1999Q1
1999Q1
1999Q1
1999Q1

Product_
Category
Children
Children
Children
Children
Children

Sports
Sports
Sports
Sports
Sports

Product_Group
A-Team, Kids
Bathing Suits, Kids
Eclipse, Kid's Clothes
Eclipse, Kid's Shoes
Lucky Guy, Kids

Quantity
286
98
588
334
303

Total_
Profit Retail_Price
4980.15
1479.95
9348.95
7136.80
7163.00

8990.90
2560.40
18768.80
14337.20
12996.20

116 F Chapter 1: Sashelp Data Sets

Figure 1.69 continued


The Product_Line Variable
The FREQ Procedure
Product Line
Cumulative
Cumulative
Product_Line
Frequency
Percent
Frequency
Percent
-------------------------------------------------------------------Children
176
19.30
176
19.30
Clothes & Shoes
288
31.58
464
50.88
Outdoors
112
12.28
576
63.16
Sports
336
36.84
912
100.00

Sashelp.plfips FIPS Place Codes from USGS Geographic Names Information System (GNIS) F 117

Sashelp.plfips FIPS Place Codes from USGS Geographic


Names Information System (GNIS)
The Sashelp.plfips data set provides FIPS place codes from USGS geographic names information system
(GNIS). The following steps display information about the data set Sashelp.plfips and create Figure 1.70.
The data set contains 173,283 observations.
title "Sashelp.plfips --- FIPS Place Codes from USGS Geographic Names Information"
" System (GNIS)";
proc contents data=sashelp.plfips varnum;
ods select position;
run;
title "The First Five Observations Out of 173283";
proc print data=sashelp.plfips(obs=5) heading=h noobs;
run;

title "The FEATURE_CLASS Variable";


proc freq data=sashelp.plfips;
tables FEATURE_CLASS;
run;

Figure 1.70 Sashelp.plfips FIPS Place Codes from USGS Geographic Names Information System
(GNIS)
Sashelp.plfips --- FIPS Place Codes from USGS Geographic Names Information System (GNIS)
The CONTENTS Procedure
Variables in Creation Order
# Variable

Type Len Format

Informat Label

1 FEATURE_ID
2 FEATURE_CLASS
3 CENSUS_CLASS_
CODE
4 NAME
5 NAME2
6 STATE
7 PLACE

Char
Char
Char

9 $9.
15 $15.
2 $2.

$9.
$15.
$2.

Char
Char
Char
Num

52
52
2
8

$CHAR52.
$CHAR52.
$CHAR2.
Z5.

USGS GNIS Unique Identifier


Description (USGS GNIS Feature Class)
FIPS Place Class Code (USGS
GNIS Census Class Code)
Place name (USGS GNIS Feature Name
Place name (Normalized Feature Name)
FIPS Place Code (USGS GNIS Census Code)

118 F Chapter 1: Sashelp Data Sets

Figure 1.70 continued


The First Five Observations Out of 173283

FEATURE_
ID

FEATURE_CLASS

1418109
1397926
1397967
2419295
1398007

Populated
Populated
Populated
Civil
Populated

Place
Place
Place
Place

CENSUS_
CLASS_
CODE
P1
U6
U6
E7
P1

NAME2

NAME
ADAK
AFOGNAK
AGUIKCHUK
AHTNA ALASKA NATIVE REGIONAL CORPORATION
AKHIOK

STATE

ADAK
AFOGNAK
AGUIKCHUK
AHTNAALASKANATIVEREGIONALCORPORATION
AKHIOK

AK
AK
AK
AK
AK

PLACE
00065
00425
00540
00590
00650

The FEATURE_CLASS Variable


The FREQ Procedure
Description (USGS GNIS Feature Class)
Cumulative
Cumulative
FEATURE_CLASS
Frequency
Percent
Frequency
Percent
-------------------------------------------------------------------Census
9661
5.58
9661
5.58
Civil
40724
23.50
50385
29.08
Locale
974
0.56
51359
29.64
Military
32
0.02
51391
29.66
Park
7
0.00
51398
29.66
Populated Place
121872
70.33
173270
99.99
Post Office
13
0.01
173283
100.00

Sashelp.port_multi F 119

Sashelp.port_multi
The following steps display information about the data set Sashelp.port_multi and create Figure 1.71. The
data set contains 915 observations.
title "Sashelp.port_multi";
proc contents data=sashelp.port_multi varnum;
ods select position;
run;
title "The First Five Observations Out of 915";
proc print data=sashelp.port_multi(obs=5) heading=h noobs;
run;

Figure 1.71 Sashelp.port_multi


Sashelp.port_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2

Term
Role

Char
Char

256
7

$256.

$256.

Term
Role

The First Five Observations Out of 915


Term
a
a
a
a
a

fim de
fim de que
menos que
par da
par das

Role
Adj
Adj
Adj
Adj
Adj

120 F Chapter 1: Sashelp Data Sets

Sashelp.prdsal2 Furniture Sales Data


The Sashelp.prdsal2 data set provides furniture sales data. The following steps display information about the
data set Sashelp.prdsal2 and create Figure 1.72. The data set contains 23,040 observations.
title "Sashelp.prdsal2 --- Furniture Sales Data";
proc contents data=sashelp.prdsal2 varnum;
ods select position;
run;
title "The First Five Observations Out of 23040";
proc print data=sashelp.prdsal2(obs=5) heading=h noobs;
run;

title "The PRODTYPE Variable";


proc freq data=sashelp.prdsal2;
tables PRODTYPE;
run;

Figure 1.72 Sashelp.prdsal2 Furniture Sales Data


Sashelp.prdsal2 --- Furniture Sales Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10
11

COUNTRY
STATE
COUNTY
ACTUAL
PREDICT
PRODTYPE
PRODUCT
YEAR
QUARTER
MONTH
MONYR

Char
Char
Char
Num
Num
Char
Char
Num
Num
Num
Num

10
22
20
8
8
10
10
8
8
8
8

Format
$CHAR10.
$CHAR22.
$CHAR20.
DOLLAR12.2
DOLLAR12.2
$CHAR10.
$CHAR10.
4.
8.
MONNAME3.
MONYY.

Informat

Label

MONYY.

Country
State/Province
County
Actual Sales
Predicted Sales
Product Type
Product
Year
Quarter
Month
Month/Year

Sashelp.prdsal2 Furniture Sales Data F 121

Figure 1.72 continued


The First Five Observations Out of 23040
COUNTRY

STATE

U.S.A.
U.S.A.
U.S.A.
U.S.A.
U.S.A.

California
California
California
California
California

COUNTY

ACTUAL
$987.36
$1,782.96
$32.64
$1,825.12
$750.72

PREDICT

PRODTYPE

PRODUCT

YEAR

QUARTER

$692.24
$568.48
$16.32
$756.16
$723.52

FURNITURE
FURNITURE
FURNITURE
FURNITURE
FURNITURE

SOFA
SOFA
SOFA
SOFA
SOFA

1995
1995
1995
1995
1995

1
1
1
2
2

MONTH

MONYR

Jan
Feb
Mar
Apr
May

JAN95
FEB95
MAR95
APR95
MAY95

The PRODTYPE Variable


The FREQ Procedure
Product Type
Cumulative
Cumulative
PRODTYPE
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------FURNITURE
11520
50.00
11520
50.00
OFFICE
11520
50.00
23040
100.00

122 F Chapter 1: Sashelp Data Sets

Sashelp.prdsal3 Furniture Sales Data


The Sashelp.prdsal3 data set provides furniture sales data. The following steps display information about the
data set Sashelp.prdsal3 and create Figure 1.73. The data set contains 11,520 observations.
title "Sashelp.prdsal3 --- Furniture Sales Data";
proc contents data=sashelp.prdsal3 varnum;
ods select position;
run;
title "The First Five Observations Out of 11520";
proc print data=sashelp.prdsal3(obs=5) heading=h noobs;
run;

title "The PRODTYPE Variable";


proc freq data=sashelp.prdsal3;
tables PRODTYPE;
run;

Figure 1.73 Sashelp.prdsal3 Furniture Sales Data


Sashelp.prdsal3 --- Furniture Sales Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10
11

COUNTRY
STATE
COUNTY
ACTUAL
PREDICT
PRODTYPE
PRODUCT
YEAR
QUARTER
MONTH
DATE

Char
Char
Char
Num
Num
Char
Char
Num
Num
Num
Num

10
22
20
8
8
10
10
8
8
8
8

Format
$CHAR10.
$CHAR22.
$CHAR20.
DOLLAR12.2
DOLLAR12.2
$CHAR10.
$CHAR10.
4.
8.
MONNAME3.
MONYY.

Informat

Label

MONYY.

Country
State/Province
County
Actual Sales
Predicted Sales
Product Type
Product
Year
Quarter
Month
Date

Sashelp.prdsal3 Furniture Sales Data F 123

Figure 1.73 continued


The First Five Observations Out of 11520
COUNTRY

STATE

U.S.A.
U.S.A.
U.S.A.
U.S.A.
U.S.A.

California
California
California
California
California

COUNTY

ACTUAL
$726.00
$1,311.00
$24.00
$1,342.00
$552.00

PREDICT

PRODTYPE

PRODUCT

YEAR

QUARTER

$509.00
$418.00
$12.00
$556.00
$532.00

FURNITURE
FURNITURE
FURNITURE
FURNITURE
FURNITURE

SOFA
SOFA
SOFA
SOFA
SOFA

1997
1997
1997
1997
1997

1
1
1
2
2

MONTH
Jan
Feb
Mar
Apr
May

The PRODTYPE Variable


The FREQ Procedure
Product Type
Cumulative
Cumulative
PRODTYPE
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------FURNITURE
5760
50.00
5760
50.00
OFFICE
5760
50.00
11520
100.00

DATE
JAN97
FEB97
MAR97
APR97
MAY97

124 F Chapter 1: Sashelp Data Sets

Sashelp.prdsale Furniture Sales Data


The Sashelp.prdsale data set provides furniture sales data. The following steps display information about the
data set Sashelp.prdsale and create Figure 1.74. The data set contains 1,440 observations.
title "Sashelp.prdsale --- Furniture Sales Data";
proc contents data=sashelp.prdsale varnum;
ods select position;
run;
title "The First Five Observations Out of 1440";
proc print data=sashelp.prdsale(obs=5) heading=h noobs;
run;

title "The DIVISION and PRODTYPE Variables";


proc freq data=sashelp.prdsale;
tables DIVISION;
tables PRODTYPE;
run;

Figure 1.74 Sashelp.prdsale Furniture Sales Data


Sashelp.prdsale --- Furniture Sales Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8
9
10

ACTUAL
PREDICT
COUNTRY
REGION
DIVISION
PRODTYPE
PRODUCT
QUARTER
YEAR
MONTH

Num
Num
Char
Char
Char
Char
Char
Num
Num
Num

8
8
10
10
10
10
10
8
8
8

Format

Label

DOLLAR12.2
DOLLAR12.2
$CHAR10.
$CHAR10.
$CHAR10.
$CHAR10.
$CHAR10.
8.
4.
MONNAME3.

Actual Sales
Predicted Sales
Country
Region
Division
Product type
Product
Quarter
Year
Month

Sashelp.prdsale Furniture Sales Data F 125

Figure 1.74 continued


The First Five Observations Out of 1440
ACTUAL

PREDICT

COUNTRY

REGION

DIVISION

$925.00
$999.00
$608.00
$642.00
$656.00

$850.00
$297.00
$846.00
$533.00
$646.00

CANADA
CANADA
CANADA
CANADA
CANADA

EAST
EAST
EAST
EAST
EAST

EDUCATION
EDUCATION
EDUCATION
EDUCATION
EDUCATION

PRODTYPE

PRODUCT

FURNITURE
FURNITURE
FURNITURE
FURNITURE
FURNITURE

SOFA
SOFA
SOFA
SOFA
SOFA

QUARTER

YEAR

MONTH

1
1
1
2
2

1993
1993
1993
1993
1993

Jan
Feb
Mar
Apr
May

The DIVISION and PRODTYPE Variables


The FREQ Procedure
Division
Cumulative
Cumulative
DIVISION
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------CONSUMER
720
50.00
720
50.00
EDUCATION
720
50.00
1440
100.00

Product type
Cumulative
Cumulative
PRODTYPE
Frequency
Percent
Frequency
Percent
--------------------------------------------------------------FURNITURE
576
40.00
576
40.00
OFFICE
864
60.00
1440
100.00

126 F Chapter 1: Sashelp Data Sets

Sashelp.pricedata Simulated Monthly Sales Data With


Hierarchy of Region, Line, Product
The Sashelp.pricedata data set provides simulated monthly sales data with hierarchy of region, line, product.
The following steps display information about the data set Sashelp.pricedata and create Figure 1.75. The
data set contains 1,020 observations.
title "Sashelp.pricedata --- Simulated Monthly Sales Data With Hierarchy of Region,"
" Line, Product";
proc contents data=sashelp.pricedata varnum;
ods select position;
run;
title "The First Five Observations Out of 1020";
proc print data=sashelp.pricedata(obs=5) heading=h noobs;
run;

title "The regionName and productLine Variables";


proc freq data=sashelp.pricedata;
tables regionName;
tables productLine;
run;

Sashelp.pricedata Simulated Monthly Sales Data With Hierarchy of Region, Line, Product F 127

Figure 1.75 Sashelp.pricedata Simulated Monthly Sales Data With Hierarchy of Region, Line, Product
Sashelp.pricedata --- Simulated Monthly Sales Data With Hierarchy of Region, Line, Product
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

Variable

Type

Len

Format

Label

date
sale
price
discount
cost
price1
price2
price3
price4
price5
price6
price7
price8
price9
price10
price11
price12
price13
price14
price15
price16
price17
regionName
productLine
productName
region
line
product

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Char
Char
Char
Num
Num
Num

8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
7
5
9
8
8
8

MONYY.

Order Date
Unit Sale
Unit Price
Price Discount
Unit Cost
Product 1 Unit Price
Product 2 Unit Price
Product 3 Unit Price
Product 4 Unit Price
Product 5 Unit Price
Product 6 Unit Price
Product 7 Unit Price
Product 8 Unit Price
Product 9 Unit Price
Product 10 Unit Price
Product 11 Unit Price
Product 12 Unit Price
Product 13 Unit Price
Product 14 Unit Price
Product 15 Unit Price
Product 16 Unit Price
Product 17 Unit Price
Sales Region
Name of product line
Product Name
Region ID
Product Line ID
Product ID

6.
6.
6.

128 F Chapter 1: Sashelp Data Sets

Figure 1.75 continued


The First Five Observations Out of 1020

date
JAN98
FEB98
MAR98
APR98
MAY98

sale

price

discount

cost

price1

price2

price3

price4

price5

355
398
387
380
555

52.300
52.300
52.300
52.300
44.455

0.00
0.00
0.00
0.00
0.15

23.9
23.9
23.9
23.9
23.9

52.300
52.300
52.300
52.300
44.455

115
115
115
115
115

33.40
33.40
33.40
28.39
33.40

67.9
67.9
67.9
67.9
67.9

36
36
36
36
36

price7

price8

price9

42
42
42
42
42

59
59
59
59
59

65.2
65.2
65.2
65.2
65.2

price16
70.55
83.00
83.00
83.00
83.00

price17
80.5
80.5
80.5
80.5
80.5

price10

price11

56.900
56.900
48.365
56.900
56.900

171.40
171.40
154.26
171.40
171.40

price6
38.88
48.60
48.60
48.60
48.60

price12

price13

price14

price15

147
147
147
147
147

122
122
122
122
122

53.00
53.00
53.00
45.05
53.00

120.2
120.2
120.2
120.2
120.2

region
Name

product
Line

product
Name

Region1
Region1
Region1
Region1
Region1

Line1
Line1
Line1
Line1
Line1

Product1
Product1
Product1
Product1
Product1

region

line

1
1
1
1
1

1
1
1
1
1

product

The regionName and productLine Variables


The FREQ Procedure
Sales Region
region
Cumulative
Cumulative
Name
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------Region1
180
17.65
180
17.65
Region2
480
47.06
660
64.71
Region3
360
35.29
1020
100.00

Name of product line


product
Cumulative
Cumulative
Line
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------Line1
180
17.65
180
17.65
Line2
240
23.53
420
41.18
Line3
240
23.53
660
64.71
Line4
240
23.53
900
88.24
Line5
120
11.76
1020
100.00

1
1
1
1
1

Sashelp.proj4def F 129

Sashelp.proj4def
The Sashelp.proj4def data set provides ESPG and ESRI map projection grids. The following steps display
information about the data set Sashelp.proj4def and create Figure 1.76. The data set contains 7,124
observations.
title "Sashelp.proj4def";
proc contents data=sashelp.proj4def varnum;
ods select position;
run;
title "The First Five Observations Out of 7124";
proc print data=sashelp.proj4def(obs=5) heading=h noobs;
run;

Figure 1.76 Sashelp.proj4def


Sashelp.proj4def
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2
3

NAME
STRING
DESC

Char
Char
Char

13
236
73

$13.
$236.
$73.

$13.
$236.
$73.

Name
Projection String
Description

130 F Chapter 1: Sashelp Data Sets

Figure 1.76 continued


The First Five Observations Out of 7124
NAME
EPSG:3819
EPSG:3821
EPSG:3824
EPSG:3889
EPSG:3906
STRING
+proj=longlat
+proj=longlat
+proj=longlat
+proj=longlat
+proj=longlat
DESC
HD1909
TWD67
TWD97
IGRS
MGI 1901

+ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs


+ellps=aust_SA +no_defs
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs
+ellps=bessel +towgs84=682,-203,480,0,0,0,0 +no_defs

Sashelp.qtr1001 M-Competition 1001 Series, Quarterly F 131

Sashelp.qtr1001 M-Competition 1001 Series, Quarterly


The Sashelp.qtr1001 data set provides m-competition 1001 series, quarterly. The following steps display
information about the data set Sashelp.qtr1001 and create Figure 1.77. The data set contains 101 observations.
title "Sashelp.qtr1001 --- M-Competition 1001 Series, Quarterly";
proc contents data=sashelp.qtr1001 varnum;
ods select position;
run;
title "The First Five Observations Out of 101";
proc print data=sashelp.qtr1001(obs=5) heading=h noobs;
run;

132 F Chapter 1: Sashelp Data Sets

Figure 1.77 Sashelp.qtr1001 M-Competition 1001 Series, Quarterly


Sashelp.qtr1001 --- M-Competition 1001 Series, Quarterly
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Variable

Type

T
S0184
S0185
S0188
S0189
S0191
S0192
S0195
S0196
S0199
S0205
S0206
S0207
S0212
S0213
S0217
S0219
S0224
S0225
S0226
S0228
S0229
S0230
S0231
S0233
S0234
S0235
S0236
S0237
S0238
S0240
S0266
S0267
S0270
S0276
S0277
S0278
S0280
S0285
S0286
S0287
S0289
S0290
S0292
S0293
S0296
S0297
S0301
S0307
S0308
S0317
S0318

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.qtr1001 M-Competition 1001 Series, Quarterly F 133

Figure 1.77 continued


Sashelp.qtr1001 --- M-Competition 1001 Series, Quarterly
The CONTENTS Procedure
Variables in Creation Order
#
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

Variable

Type

S0322
S0323
S0324
S0325
S0326
S0328
S0329
S0330
S0332
S0333
S0335
S0336
S0337
S0338
S0344
S0345
S0351
S0352
S0360
S0361
S0363
S0364
S0365
S0366
S0367
S0368
S0369
S0370
S0371
S0374
S0375
S0376
S0378
S0380
S0381
S0382
S0383
S0384

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

134 F Chapter 1: Sashelp Data Sets

Figure 1.77 continued


The First Five Observations Out of 101
T S0184
1
2
3
4
5

94
132
131
127
77
S0213

S0185

S0188

S0189

S0191 S0192 S0195 S0196 S0199 S0205 S0206 S0207 S0212

9366.37
9169.55
7776.84
11186.30
11710.70

13.3000
33.9000
19.6000
14.2000
18.4000

30.1888
38.5167
43.7217
46.8446
36.4347

5666
5405
5001
4688
5492

29
37
42
45
35

17050
18408
18540
20505
18523

65896
63922
76160
77622
78125

68462
63023
71918
81403
80790

1299
1212
1031
1118
1248

S0231

S0233 S0234 S0235 S0236

S0217 S0219 S0224 S0225 S0226 S0228 S0229 S0230

290.460
292.330
262.370
299.720
286.560

2334 2310
2598 4190
3067 10735
3318 4009
2710 4134

1440
1436
1358
1525
1559

S0237

S0238

S0240

309
341
339
380
386

65.1000
65.9000
65.8000
73.6000
65.0000

585.641
590.403
495.177
616.590
602.306

41
41
38
44
45

31
40
40
44
32

52
67
61
64
61

S0266 S0267 S0270


81
91
100
92
87

48
51
47
51
50

72
76
65
80
78

S0325

682
673
667
786
793

108
103
102
130
87

64
63
61
60
58

S0326

S0345
75
74
61
80
83

85
73
58
57
59

1026
1134
1078
1226
1087

2892
3206
2867
3446
3320

65
71
70
74
69

77
88
64
90
71

14.7000
15.0000
11.9000
15.7000
15.3000

7
7
7
8
8

S0277

S0278

S0280

23.6000
30.4000
29.0000
27.8000
30.6000

36.8000
50.3000
47.0000
50.1000
43.9000

157.800
209.100
193.100
211.100
191.700

133.700
194.400
186.900
189.900
184.100

S0307

63
63
61
60
58

S0308 S0317

7.09000
8.46000
8.62000
9.38000
8.06000

63
67
70
71
69

160
161
147
139
149

S0318

S0329

S0330

S0332

S0333

S0335

83.8000
90.7000
80.6000
84.3000
92.7000

81.8000
85.0000
86.8000
86.4000
86.1000

82.0000
84.7000
86.0000
85.6000
88.4000

82.9000
84.8000
86.5000
86.3000
88.5000

84.4000
90.7000
81.1000
84.7000
91.0000

2.66000
3.66000
3.27000
2.58000
2.49000

S0351

S0352

S0360

S0361

S0363

S0364

99.000
99.400
100.600
100.600
99.400

94.700
96.900
100.600
102.800
104.100

16.3100
16.7200
16.8400
16.8300
16.9400

4.56000
3.56000
3.38000
3.46000
4.06000

3.50000
1.80000
1.80000
1.90000
2.40000

6903
7047
7162
7250
7269

34
35
30
32
26

77
78
76
91
91

59
63
55
66
52

100
100
97
108
106

64
55
53
60
75

S0322 S0323 S0324


81
82
65
83
83

S0336

S0365

34
92
76
85
77

S0285 S0286 S0287

83.8000
90.7000
80.6000
84.3000
92.7000

S0328

960
923
777
956
1140

14
15
15
14
12

S0276

S0289 S0290 S0292 S0293 S0296 S0297 S0301


81
79
81
86
86

82
81
66
85
82

960
923
777
956
1140

60
62
60
64
60
S0366

1.03000
1.04000
1.07000
1.06000
1.07000

55
58
50
60
61

71
74
73
72
70

S0337

S0338

54.1000
59.5000
56.5000
63.9000
57.8000
S0367

82
85
33
44
47

43
63
74
64
70

63
67
70
71
69

S0344
77
78
65
84
84

S0368

S0369

313
321
325
324
325

37.2000
15.7000
11.0000
26.6000
28.9000

S0370

S0371

S0374

S0375

S0376

S0378

S0380

S0381

S0382

S0383

S0384

2.10000
3.90000
2.90000
2.50000
3.20000

29.0000
30.1000
30.6000
31.3000
33.2000

102
102
100
104
100

561
373
282
346
546

87.3000
90.1000
92.9000
91.5000
91.5000

197
348
360
668
630

1184
1196
1209
1216
1242

71.0000
50.9000
40.0000
43.0000
51.8410

40.8000
36.9000
44.2000
62.1000
57.1000

659
660
661
673
686

6.42000
6.16000
6.30000
7.58000
7.87000

Sashelp.qtr111 M-Competition 111 Series, Quarterly F 135

Sashelp.qtr111 M-Competition 111 Series, Quarterly


The Sashelp.qtr111 data set provides m-competition 111 series, quarterly. The following steps display
information about the data set Sashelp.qtr111 and create Figure 1.78. The data set contains 57 observations.
title "Sashelp.qtr111 --- M-Competition 111 Series, Quarterly";
proc contents data=sashelp.qtr111 varnum;
ods select position;
run;
title "The First Five Observations Out of 57";
proc print data=sashelp.qtr111(obs=5) heading=h noobs;
run;

Figure 1.78 Sashelp.qtr111 M-Competition 111 Series, Quarterly


Sashelp.qtr111 --- M-Competition 111 Series, Quarterly
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10

Variable

Type

T
S184
S229
S238
S292
S301
S328
S337
S364
S382

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5

The First Five Observations Out of 57


T

S184

S229

1
2
3
4
5

94
132
131
127
77

82
81
66
85
82

S238
65.1000
65.9000
65.8000
73.6000
65.0000

S292

S301

S328

108
103
102
130
87

63
63
61
60
58

83.8000
90.7000
80.6000
84.3000
92.7000

S337
54.1000
59.5000
56.5000
63.9000
57.8000

S364
6903
7047
7162
7250
7269

S382
40.8000
36.9000
44.2000
62.1000
57.1000

136 F Chapter 1: Sashelp Data Sets

Sashelp.rent
The Sashelp.rent data set provides a data set with two variables, date and amount. The following steps display
information about the data set Sashelp.rent and create Figure 1.79. The data set contains 10 observations.
title "Sashelp.rent";
proc contents data=sashelp.rent varnum;
ods select position;
run;
title "The First Five Observations Out of 10";
proc print data=sashelp.rent(obs=5) heading=h noobs;
run;

Figure 1.79 Sashelp.rent


Sashelp.rent
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 10


DATE

AMOUNT

01JAN1997
01JAN1998
01JAN1999
01JAN2000
01JAN2001

-23000
-23000
-23000
-23000
-23000

Sashelp.retail Retail Sales (Quarterly: 1980q1-1994q2) F 137

Sashelp.retail Retail Sales (Quarterly: 1980q1-1994q2)


The Sashelp.retail data set provides retail sales (quarterly: 1980q11994q2). The following steps display
information about the data set Sashelp.retail and create Figure 1.80. The data set contains 58 observations.
title "Sashelp.retail --- Retail Sales (Quarterly: 1980q1-1994q2)";
proc contents data=sashelp.retail varnum;
ods select position;
run;
title "The First Five Observations Out of 58";
proc print data=sashelp.retail(obs=5) heading=h noobs;
run;

Figure 1.80 Sashelp.retail Retail Sales (Quarterly: 1980q1-1994q2)


Sashelp.retail --- Retail Sales (Quarterly: 1980q1-1994q2)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5

SALES
DATE
YEAR
MONTH
DAY

Num
Num
Num
Num
Num

Len
8
8
8
8
8

Format

Label

DOLLAR10.
YYQ4.

Retail sales in millions of $

The First Five Observations Out of 58


SALES

DATE

YEAR

$220
$257
$258
$295
$247

80Q1
80Q2
80Q3
80Q4
81Q1

1980
1980
1980
1980
1981

MONTH
1
4
7
10
1

DAY
1
1
1
1
1

138 F Chapter 1: Sashelp Data Sets

Sashelp.revhub2 Airline Data


The Sashelp.revhub2 data set provides airline data. The following steps display information about the data
set Sashelp.revhub2 and create Figure 1.81. The data set contains 72 observations.
title "Sashelp.revhub2 --- Airline Data";
proc contents data=sashelp.revhub2 varnum;
ods select position;
run;
title "The First Five Observations Out of 72";
proc print data=sashelp.revhub2(obs=5) heading=h noobs;
run;

title "The HUB and SOURCE Variables";


proc freq data=sashelp.revhub2;
tables HUB;
tables SOURCE;
run;

Figure 1.81 Sashelp.revhub2 Airline Data


Sashelp.revhub2 --- Airline Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

HUB
SOURCE
TYPE
REVENUE

Char
Char
Char
Num

16
16
16
8

Format

Label

DOLLAR15.

HUB
REVENUE SOURCE
TYPE
REVENUE

The First Five Observations Out of 72


HUB
Frankfurt
Frankfurt
Frankfurt
Frankfurt
Frankfurt

SOURCE

TYPE

Freight
Freight
Freight
Other
Other

Direct
Indirect
Other
Direct
Indirect

REVENUE
$1,464,938
$198,942
$144,685
$111,193
$12,057

Sashelp.revhub2 Airline Data F 139

Figure 1.81 continued


The HUB and SOURCE Variables
The FREQ Procedure
HUB
Cumulative
Cumulative
HUB
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------------Frankfurt
12
16.67
12
16.67
London
12
16.67
24
33.33
New York
12
16.67
36
50.00
San Francisco
12
16.67
48
66.67
Sydney
12
16.67
60
83.33
Tokyo
12
16.67
72
100.00

REVENUE SOURCE
Cumulative
Cumulative
SOURCE
Frequency
Percent
Frequency
Percent
-------------------------------------------------------------Freight
18
25.00
18
25.00
Other
18
25.00
36
50.00
Passenger
18
25.00
54
75.00
Service
18
25.00
72
100.00

140 F Chapter 1: Sashelp Data Sets

Sashelp.rockpit
The Sashelp.rockpit data set provides sample data for a SAS/ETS example, performing time value analysis.
The following steps display information about the data set Sashelp.rockpit and create Figure 1.82. The data
set contains 6 observations.
title "Sashelp.rockpit";
proc contents data=sashelp.rockpit varnum;
ods select position;
run;
title "The First Five Observations Out of 6";
proc print data=sashelp.rockpit(obs=5) heading=h noobs;
run;

Figure 1.82 Sashelp.rockpit


Sashelp.rockpit
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
AMOUNT

Num
Num

Len

Format

Label

8
8

DATE9.

Date

The First Five Observations Out of 6


DATE

AMOUNT

01JAN1998
01JAN1999
01JAN2000
01JAN2001
01JAN2002

-84000
-36000
-36000
-120000
-36000

Sashelp.shoes Fictitious Shoe Company Data F 141

Sashelp.shoes Fictitious Shoe Company Data


The Sashelp.shoes data set provides fictitious shoe company data. The following steps display information
about the data set Sashelp.shoes and create Figure 1.83. The data set contains 395 observations.
title "Sashelp.shoes --- Fictitious Shoe Company Data";
proc contents data=sashelp.shoes varnum;
ods select position;
run;
title "The First Five Observations Out of 395";
proc print data=sashelp.shoes(obs=5) heading=h noobs;
run;

title "The Product Variable";


proc freq data=sashelp.shoes;
tables Product;
run;

Figure 1.83 Sashelp.shoes Fictitious Shoe Company Data


Sashelp.shoes --- Fictitious Shoe Company Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7

Region
Product
Subsidiary
Stores
Sales
Inventory
Returns

Char
Char
Char
Num
Num
Num
Num

25
14
12
8
8
8
8

Format

Informat

Label

DOLLAR12.
DOLLAR12.
DOLLAR12.

DOLLAR12.
DOLLAR12.
DOLLAR12.

Number of Stores
Total Sales
Total Inventory
Total Returns

The First Five Observations Out of 395


Region

Product

Subsidiary

Africa
Africa
Africa
Africa
Africa

Boot
Men's Casual
Men's Dress
Sandal
Slipper

Addis
Addis
Addis
Addis
Addis

Ababa
Ababa
Ababa
Ababa
Ababa

Stores
12
4
7
10
14

Sales

Inventory

Returns

$29,761
$67,242
$76,793
$62,819
$68,641

$191,821
$118,036
$136,273
$204,284
$279,795

$769
$2,284
$2,433
$1,861
$1,771

142 F Chapter 1: Sashelp Data Sets

Figure 1.83 continued


The Product Variable
The FREQ Procedure
Cumulative
Cumulative
Product
Frequency
Percent
Frequency
Percent
------------------------------------------------------------------Boot
52
13.16
52
13.16
Men's Casual
45
11.39
97
24.56
Men's Dress
50
12.66
147
37.22
Sandal
49
12.41
196
49.62
Slipper
52
13.16
248
62.78
Sport Shoe
51
12.91
299
75.70
Women's Casual
45
11.39
344
87.09
Women's Dress
51
12.91
395
100.00

Sashelp.snacks Daily Snack Food Sales F 143

Sashelp.snacks Daily Snack Food Sales


The Sashelp.snacks data set provides daily snack food sales. The following steps display information about
the data set Sashelp.snacks and create Figure 1.84. The data set contains 35,770 observations.
title "Sashelp.snacks --- Daily Snack Food Sales";
proc contents data=sashelp.snacks varnum;
ods select position;
run;
title "The First Five Observations Out of 35770";
proc print data=sashelp.snacks(obs=5) heading=h noobs;
run;

title "The Product Variable";


proc freq data=sashelp.snacks;
tables Product;
run;

Figure 1.84 Sashelp.snacks Daily Snack Food Sales


Sashelp.snacks --- Daily Snack Food Sales
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6

QtySold
Price
Advertised
Holiday
Date
Product

Num
Num
Num
Num
Num
Char

8
8
8
8
8
40

Format

DATE9.

Label
Quantity sold
Retail price of product
Advertised (1=yes)
Holiday (1=yes)
Date of sale
Product name

The First Five Observations Out of 35770


Qty
Sold
0
0
0
0
0

Price
1.99
1.99
1.99
1.99
1.99

Advertised
0
0
0
0
0

Holiday
0
0
0
0
0

Date
01JAN2002
02JAN2002
03JAN2002
04JAN2002
05JAN2002

Product
Baked
Baked
Baked
Baked
Baked

potato
potato
potato
potato
potato

chips
chips
chips
chips
chips

144 F Chapter 1: Sashelp Data Sets

Figure 1.84 continued


The Product Variable
The FREQ Procedure
Product name
Cumulative Cumulative
Product
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------------------------Baked potato chips
1022
2.86
1022
2.86
Barbeque pork rinds
1022
2.86
2044
5.71
Barbeque potato chips
1022
2.86
3066
8.57
Bread sticks
1022
2.86
4088
11.43
Buttery popcorn
1022
2.86
5110
14.29
Carmelized popcorn
1022
2.86
6132
17.14
Cheddar cheese break sticks
1022
2.86
7154
20.00
Cheddar cheese popcorn
1022
2.86
8176
22.86
Cheese puffs
1022
2.86
9198
25.71
Classic potato chips
1022
2.86
10220
28.57
Easy dip tortilla chips
1022
2.86
11242
31.43
Extra hot pork rinds
1022
2.86
12264
34.29
Fiesta sticks
1022
2.86
13286
37.14
Fried pork rinds
1022
2.86
14308
40.00
Hot spicy cheese puffs
1022
2.86
15330
42.86
Jalepeno sticks
1022
2.86
16352
45.71
Jumbo pretzel sticks
1022
2.86
17374
48.57
Low-fat popcorn
1022
2.86
18396
51.43
Low-fat saltines
1022
2.86
19418
54.29
Multigrain chips
1022
2.86
20440
57.14
Pepper sticks
1022
2.86
21462
60.00
Pretzel sticks
1022
2.86
22484
62.86
Pretzel twists
1022
2.86
23506
65.71
Ruffled potato chips
1022
2.86
24528
68.57
Rye crackers
1022
2.86
25550
71.43
Salt and vinegar potato chips
1022
2.86
26572
74.29
Saltine crackers
1022
2.86
27594
77.14
Shredded wheat crackers
1022
2.86
28616
80.00
Stone-ground wheat sticks
1022
2.86
29638
82.86
Sun-dried tomato multigrain chips
1022
2.86
30660
85.71
Tortilla chips
1022
2.86
31682
88.57
WOW cheese puffs
1022
2.86
32704
91.43
WOW potato chips
1022
2.86
33726
94.29
WOW tortilla chips
1022
2.86
34748
97.14
Wheat crackers
1022
2.86
35770
100.00

Sashelp.span_multi F 145

Sashelp.span_multi
The following steps display information about the data set Sashelp.span_multi and create Figure 1.85. The
data set contains 576 observations.
title "Sashelp.span_multi";
proc contents data=sashelp.span_multi varnum;
ods select position;
run;
title "The First Five Observations Out of 576";
proc print data=sashelp.span_multi(obs=5) heading=h noobs;
run;

Figure 1.85 Sashelp.span_multi


Sashelp.span_multi
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

Format

Informat

Label

1
2

Term
Role

Char
Char

256
7

$256.

$256.

Term
Role

The First Five Observations Out of 576


Term
a cabo
adems de
antes de
con el fin de
cuadragsimo quinto
Role
Adj
Adj
Adj
Adj
Adj

146 F Chapter 1: Sashelp Data Sets

Sashelp.steel Iron/Steel Exports (Yearly: 1937-1980)


The Sashelp.steel data set provides iron/steel exports (yearly: 19371980). The following steps display
information about the data set Sashelp.steel and create Figure 1.86. The data set contains 44 observations.
title "Sashelp.steel --- Iron/Steel Exports (Yearly: 1937-1980)";
proc contents data=sashelp.steel varnum;
ods select position;
run;
title "The First Five Observations Out of 44";
proc print data=sashelp.steel(obs=5) heading=h noobs;
run;

Figure 1.86 Sashelp.steel Iron/Steel Exports (Yearly: 1937-1980)


Sashelp.steel --- Iron/Steel Exports (Yearly: 1937-1980)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

DATE
STEEL

Num
Num

Len
8
8

Format

Label

YEAR.
iron/steel exports in million tons

The First Five Observations Out of 44


DATE

STEEL

1937
1938
1939
1940
1941

3.89
2.41
2.80
8.72
7.12

Sashelp.stocks Performance of Three Stocks from 1996 to 2005 F 147

Sashelp.stocks Performance of Three Stocks from 1996 to


2005
The Sashelp.stocks data set provides the performance of three stocks from 1996 to 2005. The following
steps display information about the data set Sashelp.stocks and create Figure 1.87. The data set contains 699
observations.
title "Sashelp.stocks --- Performance of Three Stocks from 1996 to 2005";
proc contents data=sashelp.stocks varnum;
ods select position;
run;
title "The First Five Observations Out of 699";
proc print data=sashelp.stocks(obs=5) heading=h noobs;
run;

Figure 1.87 Sashelp.stocks Performance of Three Stocks from 1996 to 2005


Sashelp.stocks --- Performance of Three Stocks from 1996 to 2005
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6
7
8

Stock
Date
Open
High
Low
Close
Volume
AdjClose

Char
Num
Num
Num
Num
Num
Num
Num

9
8
8
8
8
8
8
8

Format

Informat

Label

DATE.
DOLLAR8.2
DOLLAR8.2
DOLLAR8.2
DOLLAR8.2
COMMA12.
DOLLAR8.2

DATE.
BEST32.
BEST32.
BEST32.
BEST32.
BEST32.
BEST32.

Adjusted Close

The First Five Observations Out of 699


Stock
IBM
IBM
IBM
IBM
IBM

Date
01DEC05
01NOV05
03OCT05
01SEP05
01AUG05

Open

High

Low

Close

Volume

AdjClose

$89.15
$81.85
$80.22
$80.16
$83.00

$89.92
$89.94
$84.60
$82.11
$84.20

$81.56
$80.64
$78.70
$76.93
$79.87

$82.20
$88.90
$81.88
$80.22
$80.62

5,976,252
5,556,471
7,019,666
5,772,280
4,801,386

$81.37
$88.01
$80.86
$79.22
$79.62

148 F Chapter 1: Sashelp Data Sets

Sashelp.syr1001 M-Competition 1001 Series, Semiannual


The Sashelp.syr1001 data set provides m-competition 1001 series, semiannual. The following steps display
information about the data set Sashelp.syr1001 and create Figure 1.88. The data set contains 105 observations.
title "Sashelp.syr1001 --- M-Competition 1001 Series, Semiannual";
proc contents data=sashelp.syr1001 varnum;
ods select position;
run;
title "The First Five Observations Out of 105";
proc print data=sashelp.syr1001(obs=5) heading=h noobs;
run;

Figure 1.88 Sashelp.syr1001 M-Competition 1001 Series, Semiannual


Sashelp.syr1001 --- M-Competition 1001 Series, Semiannual
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3

T
S0502
S0666

Num
Num
Num

Len
4
5
5

The First Five Observations Out of 105


T

S0502

S0666

1
2
3
4
5

425
425
421
322
414

1.80000
1.52000
1.51000
1.80000
1.85000

Sashelp.tgrmapc US County Names and State/County FIPS Codes F 149

Sashelp.tgrmapc US County Names and State/County FIPS


Codes
The Sashelp.tgrmapc data set provides US county names and state/county FIPS codes. The following steps
display information about the data set Sashelp.tgrmapc and create Figure 1.89. The data set contains 3,143
observations.
title "Sashelp.tgrmapc --- US County Names and State/County FIPS Codes";
proc contents data=sashelp.tgrmapc varnum;
ods select position;
run;
title "The First Five Observations Out of 3143";
proc print data=sashelp.tgrmapc(obs=5) heading=h noobs;
run;

Figure 1.89 Sashelp.tgrmapc US County Names and State/County FIPS Codes


Sashelp.tgrmapc --- US County Names and State/County FIPS Codes
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3

STATE
COUNTY
COUNTYNM

Num
Num
Char

7
7
25

Label
State FIPS Code
County FIPS Code
County Name

The First Five Observations Out of 3143


STATE

COUNTY

1
1
1
1
1

1
3
5
7
9

COUNTYNM
Autauga
Baldwin
Barbour
Bibb
Blount

150 F Chapter 1: Sashelp Data Sets

Sashelp.tgrmaps US State Names and FIPS Codes


The Sashelp.tgrmaps data set provides US state names and FIPS codes. The following steps display
information about the data set Sashelp.tgrmaps and create Figure 1.90. The data set contains 51 observations.
title "Sashelp.tgrmaps --- US State Names and FIPS Codes";
proc contents data=sashelp.tgrmaps varnum;
ods select position;
run;
title "The First Five Observations Out of 51";
proc print data=sashelp.tgrmaps(obs=5) heading=h noobs;
run;

Figure 1.90 Sashelp.tgrmaps US State Names and FIPS Codes


Sashelp.tgrmaps --- US State Names and FIPS Codes
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2

STATE
STATEN

Num
Char

7
20

Label
State FIPS Code

The First Five Observations Out of 51


STATE
1
2
4
5
6

STATEN
Alabama
Alaska
Arizona
Arkansas
California

Sashelp.thick Coal Seam Thickness F 151

Sashelp.thick Coal Seam Thickness


The Sashelp.Thick data set simulates measurements of coal seam thickness (in feet) taken over an approximately square area. The variable Thick contains the thickness values. The coordinates are offsets from a point
in the southwest corner of the measurement area, where the unit for the north and east distances is 1,000 feet.
The following steps display information about the data set Sashelp.thick and create Figure 1.91. The data set
contains 75 observations.
title "Sashelp.thick --- Coal Seam Thickness";
proc contents data=sashelp.thick varnum;
ods select position;
run;
title "The First Five Observations Out of 75";
proc print data=sashelp.thick(obs=5) heading=h noobs;
run;

Figure 1.91 Sashelp.thick Coal Seam Thickness


Sashelp.thick --- Coal Seam Thickness
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3

East
North
Thick

Num
Num
Num

Len
8
8
8

Label

Coal Seam Thickness

The First Five Observations Out of 75


East

North

Thick

0.7
2.1
4.7
4.8
5.9

59.6
82.7
75.1
52.8
67.1

34.1
42.2
39.5
34.3
37.0

152 F Chapter 1: Sashelp Data Sets

Sashelp.timedata Time-Stamped Data


The Sashelp.timedata data set provides time-stamped data. The following steps display information about
the data set Sashelp.timedata and create Figure 1.92. The data set contains 40,330 observations.
title "Sashelp.timedata --- Time-Stamped Data";
proc contents data=sashelp.timedata varnum;
ods select position;
run;
title "The First Five Observations Out of 40330";
proc print data=sashelp.timedata(obs=5) heading=h noobs;
run;

Figure 1.92 Sashelp.timedata Time-Stamped Data


Sashelp.timedata --- Time-Stamped Data
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2

volume
datetime

Num
Num

Len
8
8

Format

Label

DATETIME18.

Volume
Datetime of recordings

The First Five Observations Out of 40330


volume
1
4
2
1
2

datetime
25JUL97:00:00:00
25JUL97:00:30:00
25JUL97:01:00:00
25JUL97:02:00:00
25JUL97:02:30:00

Sashelp.tourism Tourism Demand Modelling and Forecasting F 153

Sashelp.tourism Tourism Demand Modelling and


Forecasting
The Sashelp.tourism data set provides tourism demand modeling and forecasting. The following steps display
information about the data set Sashelp.tourism and create Figure 1.93. The data set contains 29 observations.
title "Sashelp.tourism --- Tourism Demand Modelling and Forecasting";
proc contents data=sashelp.tourism varnum;
ods select position;
run;
title "The First Five Observations Out of 29";
proc print data=sashelp.tourism(obs=5) heading=h noobs;
run;

Figure 1.93 Sashelp.tourism Tourism Demand Modelling and Forecasting


Sashelp.tourism --- Tourism Demand Modelling and Forecasting
The CONTENTS Procedure
Variables in Creation Order
# Variable Type Len Format Label
1
2
3
4
5

year
vsp
pdi
puk
exuk

6 pop
7 cpisp
8 exsp

Num
Num
Num
Num
Num
Num
Num
Num

8 YEAR4. Year
8
the number of holidays in Spain taken by US residents
8
UK real personal disposable income
8
the implicit deflator of UK consumer expenditure
8
an exchange rate index of the
UK pound against the US dollar
8
the UK population
8
the consumer price index in Spain
8
an exchange rate index of Spanish
pesetas against the US dollar

The First Five Observations Out of 29


year

vsp

pdi

puk

exuk

1966
1967
1968
1969
1970

1.2823
1.2718
1.5370
1.9501
1.8300

201207
204171
207772
209684
217675

0.13425
0.13774
0.14430
0.15227
0.16125

0.48571
0.56320
0.56836
0.56452
0.56616

pop
54.643
54.959
55.216
55.461
55.632

cpisp
0.09616
0.10231
0.10743
0.10982
0.11358

exsp
0.43519
0.50555
0.50642
0.50816
0.50569

154 F Chapter 1: Sashelp Data Sets

Sashelp.usecon Source: US BEA, "Business Statistics"


The following steps display information about the data set Sashelp.usecon and create Figure 1.94. The data
set contains 252 observations.
title "Sashelp.usecon --- Source: US BEA, ""Business Statistics""";
proc contents data=sashelp.usecon varnum;
ods select position;
run;
title "The First Five Observations Out of 252";
proc print data=sashelp.usecon(obs=5) heading=h noobs;
run;

Figure 1.94 Sashelp.usecon Source: US BEA, "Business Statistics"


Sashelp.usecon --- Source: US BEA, "Business Statistics"
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3
4
5
6
7
8
9
10
11
12

DATE
AIRRPMD
AIRRPMT
CHEMICAL
COAL
DURABLES
HS1FAM
HSTOTAL
NONDUR
PETROL
TOBACCO
VEHICLES

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len

Format

5
5
5
5
5
5
5
5
5
5
5
5

MONYY.

Label

Airline Revenue Passenger Miles Domestic


Airline Revenue Passenger Miles Total
Sales: Chemicals and Allied Products
Bituminous Coal Production
Sales: Durable Goods Industries, Total
Housing Starts, One-family structures
Housing Starts, Total Private
Sales: Nondurable Goods Industries Total
Sales: Petroleum and Coal Products
Sales: Tobacco Products
Sales: Motor Vehicles and Parts

The First Five Observations Out of 252


DATE

AIRRPMD AIRRPMT CHEMICAL

JAN71
FEB71
MAR71
APR71
MAY71

8.43999
7.20000
8.17000
9.02000
8.39999

10.5200
8.9900
10.1400
11.1500
10.8400

3896
4346
4318
4536
4454

COAL DURABLES HS1FAM HSTOTAL NONDUR PETROL TOBACCO VEHICLES


49780
47029
56920
54336
50442

26617
29829
31336
30484
31008

.
.
.
.
.

.
.
.
.
.

23314
25407
25832
25773
25560

2154
2250
2165
2223
2190

425
433
445
440
458

4367
5147
5418
4897
5002

Sashelp.us_data Apportionment, Population Change, Population Density F 155

Sashelp.us_data Apportionment, Population Change,


Population Density
The Sashelp.us_data data set provides apportionment, population change, and population density. The
following steps display information about the data set Sashelp.us_data and create Figure 1.95. The data set
contains 52 observations.
title "Sashelp.us_data --- Apportionment, Population Change, Population Density";
proc contents data=sashelp.us_data varnum;
ods select position;
run;
title "The First Five Observations Out of 52";
proc print data=sashelp.us_data(obs=5) heading=h noobs;
run;

156 F Chapter 1: Sashelp Data Sets

Figure 1.95 Sashelp.us_data Apportionment, Population Change, Population Density


Sashelp.us_data --- Apportionment, Population Change, Population Density
The CONTENTS Procedure
Variables in Creation Order
# Variable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

STATENAME
DENSITY_1910
DENSITY_1920
DENSITY_1930
DENSITY_1940
DENSITY_1950
DENSITY_1960
DENSITY_1970
DENSITY_1980
DENSITY_1990
DENSITY_2000
DENSITY_2010
RANK_1910
RANK_1920
RANK_1930
RANK_1940
RANK_1950
RANK_1960
RANK_1970
RANK_1980
RANK_1990
RANK_2000
RANK_2010
REPS_1910
REPS_1920
REPS_1930
REPS_1940
REPS_1950
REPS_1960
REPS_1970
REPS_1980
REPS_1990
REPS_2000
REPS_2010
PEOPLE_PER_REP_1910
PEOPLE_PER_REP_1920
PEOPLE_PER_REP_1930
PEOPLE_PER_REP_1940
PEOPLE_PER_REP_1950
PEOPLE_PER_REP_1960
PEOPLE_PER_REP_1970
PEOPLE_PER_REP_1980
PEOPLE_PER_REP_1990
PEOPLE_PER_REP_2000
PEOPLE_PER_REP_2010
SEAT_CHANGE_1910
SEAT_CHANGE_1920
SEAT_CHANGE_1930
SEAT_CHANGE_1940
SEAT_CHANGE_1950
SEAT_CHANGE_1960
SEAT_CHANGE_1970

Type Len Format

Label

Char
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Name of State or Region


1910_People per Square Mile
1920_People per Square Mile
1930_People per Square Mile
1940_People per Square Mile
1950_People per Square Mile
1960_People per Square Mile
1970_People per Square Mile
1980_People per Square Mile
1990_People per Square Mile
2000_People per Square Mile
2010_People per Square Mile
1910_Density Rank: Most Dense(1)
1920_Density Rank: Most Dense(1)
1930_Density Rank: Most Dense(1)
1940_Density Rank: Most Dense(1)
1950_Density Rank: Most Dense(1)
1960_Density Rank: Most Dense(1)
1970_Density Rank: Most Dense(1)
1980_Density Rank: Most Dense(1)
1990_Density Rank: Most Dense(1)
2000_Density Rank: Most Dense(1)
2010_Density Rank: Most Dense(1)
1910_Number of Representatives
1920_Number of Representatives
1930_Number of Representatives
1940_Number of Representatives
1950_Number of Representatives
1960_Number of Representatives
1970_Number of Representatives
1980_Number of Representatives
1990_Number of Representatives
2000_Number of Representatives
2010_Number of Representatives
1910_People per Representative
1920_People per Representative
1930_People per Representative
1940_People per Representative
1950_People per Representative
1960_People per Representative
1970_People per Representative
1980_People per Representative
1990_People per Representative
2000_People per Representative
2010_People per Representative
1910_Seat Change
1920_Seat Change
1930_Seat Change
1940_Seat Change
1950_Seat Change
1960_Seat Change
1970_Seat Change

20
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8

COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1
COMMA8.1

COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.
COMMA10.

to
to
to
to
to
to
to
to
to
to
to

Least
Least
Least
Least
Least
Least
Least
Least
Least
Least
Least

Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)
Dense(52)

Sashelp.us_data Apportionment, Population Change, Population Density F 157

Figure 1.95 continued


Sashelp.us_data --- Apportionment, Population Change, Population Density
The CONTENTS Procedure
Variables in Creation Order
# Variable
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

SEAT_CHANGE_1980
SEAT_CHANGE_1990
SEAT_CHANGE_2000
SEAT_CHANGE_2010
POPULATION_1910
POPULATION_1920
POPULATION_1930
POPULATION_1940
POPULATION_1950
POPULATION_1960
POPULATION_1970
POPULATION_1980
POPULATION_1990
POPULATION_2000
POPULATION_2010
CHANGE_1910
CHANGE_1920
CHANGE_1930
CHANGE_1940
CHANGE_1950
CHANGE_1960
CHANGE_1970
CHANGE_1980
CHANGE_1990
CHANGE_2000
CHANGE_2010
STATE
STATECODE
DIVISION
REGION

Type Len Format

Label

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Char
Char
Char

1980_Seat Change
1990_Seat Change
2000_Seat Change
2010_Seat Change
1910_Population
1920_Population
1930_Population
1940_Population
1950_Population
1960_Population
1970_Population
1980_Population
1990_Population
2000_Population
2010_Population
1910_Population change
1920_Population change
1930_Population change
1940_Population change
1950_Population change
1960_Population change
1970_Population change
1980_Population change
1990_Population change
2000_Population change
2010_Population change
State Fips Code
Two-letter Abbrev. for
US Divisions
US Regions

8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
6
2
18
9

COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.
COMMA15.

expressed
expressed
expressed
expressed
expressed
expressed
expressed
expressed
expressed
expressed
expressed
State Name

as
as
as
as
as
as
as
as
as
as
as

%
%
%
%
%
%
%
%
%
%
%

158 F Chapter 1: Sashelp Data Sets

Figure 1.95 continued


The First Five Observations Out of 52

DENSITY_ DENSITY_ DENSITY_ DENSITY_ DENSITY_ DENSITY_ DENSITY_ DENSITY_ DENSITY_


1910
1920
1930
1940
1950
1960
1970
1980
1990

STATENAME
Alabama
Alaska
Arizona
Arkansas
California

42.2
0.1
1.8
30.3
15.3

DENSITY_
2000

DENSITY_
2010

87.8
1.1
45.2
51.4
217.4

94.4
1.2
56.3
5.6
239.1

46.4
0.1
2.9
33.7
2.2

RANK_
1910

52.3
0.1
3.8
35.6
36.4

55.9
0.1
4.4
37.5
44.3

60.5
0.2
6.6
36.7
6.8

64.5
0.4
11.5
34.3
100.9

10
.
.
7
11

9
.
1
7
20

79.8
0.1
32.3
45.2
19.1

RANK_
1930

RANK_
1940

RANK_
1950

RANK_
1960

RANK_
1970

RANK_
1980

RANK_
1990

RANK_
2000

RANK_
2010

25
52
49
31
35

24
52
47
32
31

23
52
47
32
30

24
52
47
34
22

28
52
43
36
15

28
52
43
37
15

28
52
42
37
16

27
52
39
37
14

28
52
38
36
14

29
52
35
36
13

25
52
49
30
38

9
.
2
7
23

76.9
0.7
23.9
43.9
151.9

RANK_
1920

REPS_ REPS_ REPS_ REPS_ REPS_ REPS_ REPS_ REPS_ REPS_ REPS_ REPS_
1910 1920 1930 1940 1950 1960 1970 1980 1990 2000 2010
10
.
.
7
11

6.8
0.5
15.6
3.7
128.1

9
.
2
6
30

8
1
3
4
38

7
1
4
4
43

7
1
5
4
45

7
1
6
4
52

7
1
8
4
53

7
1
9
4
53

PEOPLE_
PER_REP_
1910

PEOPLE_
PER_REP_
1920

213,809
.
.
224,921
216,051

0
.
.
0
0

PEOPLE_
PER_REP_
1930

PEOPLE_
PER_REP_
1940

PEOPLE_
PER_REP_
1950

PEOPLE_
PER_REP_
1960

PEOPLE_
PER_REP_
1970

PEOPLE_
PER_REP_
1980

PEOPLE_
PER_REP_
1990

PEOPLE_
PER_REP_
2000

294,027
.
389,375
264,921
283,412

314,773
.
249,631
278,484
300,321

340,194
.
374,794
318,252
352,874

408,343
226,167
434,054
446,568
413,611

496,555
304,067
446,905
485,576
467,415

555,723
400,481
543,573
571,378
525,968

580,373
551,947
612,998
590,560
573,832

637,304
628,933
642,585
669,933
640,204

PEOPLE_ SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
SEAT_
PER_REP_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_
2010
1910
1920
1930
1940
1950
1960
1970
1980
1990
2000
686,140
721,523
712,522
731,557
704,566

1
.
.
0
3

0
.
.
0
0

-1
.
1
0
9

0
.
1
0
3

0
.
0
-1
7

-1
1
1
-2
8

-1
0
1
0
5

0
0
1
0
2

0
0
1
0
7

0
0
2
0
1

Sashelp.us_data Apportionment, Population Change, Population Density F 159

Figure 1.95 continued


The First Five Observations Out of 52
SEAT_
CHANGE_
2010

POPULATION_1910

POPULATION_1920

POPULATION_1930

POPULATION_1940

POPULATION_1950

2,138,093
64,356
204,354
1,574,449
2,377,549

2,348,174
55,036
334,162
1,752,204
3,426,861

2,646,248
59,278
435,573
1,854,482
5,677,251

2,832,961
72,524
499,261
1,949,387
6,907,387

3,061,743
128,643
749,587
1,909,511
10,586,223

0
0
1
0
0

POPULATION_1960 POPULATION_1970 POPULATION_1980 POPULATION_1990 POPULATION_2000 POPULATION_2010


3,266,740
226,167
1,302,161
1,786,272
15,717,204

3,444,165
300,382
1,770,900
1,923,295
19,953,134

3,893,888
401,851
2,718,215
2,286,435
23,667,902

4,040,587
550,043
3,665,228
2,350,725
29,760,021

4,447,100
626,932
5,130,632
2,673,400
33,871,648

4,779,736
710,231
6,392,017
2,915,918
37,253,956

CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_ CHANGE_
1910
1920
1930
1940
1950
1960
1970
1980
1990
2000
2010
16.9
1.2
66.2
20.0
60.1

9.8
-14.5
63.5
11.3
44.1

STATE

STATECODE

1
2
4
5
6

AL
AK
AZ
AR
CA

12.7
7.7
30.3
5.8
65.7

7.1
22.3
14.6
5.1
21.7

8.1
77.4
50.1
-2.0
53.3

6.7
75.8
73.7
-6.5
48.5

DIVISION

REGION

East South Central


Pacific
Mountain
West South Central
Pacific

South
West
West
South
West

5.4
32.8
36.0
7.7
27.0

13.1
33.8
53.5
18.9
18.6

3.8
36.9
34.8
2.8
25.7

10.1
14.0
40.0
13.7
13.8

7.5
13.3
24.6
9.1
10.0

160 F Chapter 1: Sashelp Data Sets

Sashelp.vbplayrs
The following steps display information about the data set Sashelp.vbplayrs and create Figure 1.96. The data
set contains 11 observations.
title "Sashelp.vbplayrs";
proc contents data=sashelp.vbplayrs varnum;
ods select position;
run;
title "The First Five Observations Out of 11";
proc print data=sashelp.vbplayrs(obs=5) heading=h noobs;
run;

title "The TUESDAY and FRIDAY Variables";


proc freq data=sashelp.vbplayrs;
tables TUESDAY;
tables FRIDAY;
run;

Figure 1.96 Sashelp.vbplayrs


Sashelp.vbplayrs
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4

NAME
EMAIL
TUESDAY
FRIDAY

Char
Char
Char
Char

18
50
1
1

The First Five Observations Out of 11


NAME
John Doe
Joe Smith
Becky Smith
Charlie Thomas
Daniel Jones

EMAIL

TUESDAY

FRIDAY

john_doe@acme.com
joe_smith@acme.com
becky_smith@acme.com
charlie_thomas@acme.com
daniel_jones@acme.com

N
N
Y
Y
N

Y
Y
Y
N
Y

Sashelp.vbplayrs F 161

Figure 1.96 continued


The TUESDAY and FRIDAY Variables
The FREQ Procedure
Cumulative
Cumulative
TUESDAY
Frequency
Percent
Frequency
Percent
-----------------------------------------------------------N
6
54.55
6
54.55
Y
5
45.45
11
100.00

Cumulative
Cumulative
FRIDAY
Frequency
Percent
Frequency
Percent
----------------------------------------------------------N
4
36.36
4
36.36
Y
7
63.64
11
100.00

162 F Chapter 1: Sashelp Data Sets

Sashelp.workers Employment (Monthly: Jan77-Jul82)


The Sashelp.workers data set provides employment data (monthly: Jan77Jul82). The following steps
display information about the data set Sashelp.workers and create Figure 1.97. The data set contains 67
observations.
title "Sashelp.workers --- Employment (Monthly: Jan77-Jul82)";
proc contents data=sashelp.workers varnum;
ods select position;
run;
title "The First Five Observations Out of 67";
proc print data=sashelp.workers(obs=5) heading=h noobs;
run;

Figure 1.97 Sashelp.workers Employment (Monthly: Jan77-Jul82)


Sashelp.workers --- Employment (Monthly: Jan77-Jul82)
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

1
2
3

DATE
ELECTRIC
MASONRY

Num
Num
Num

Len
8
8
8

Format

Label

MONYY5.
electrical workers, thousands
masonry workers, thousands

The First Five Observations Out of 67


DATE
JAN77
FEB77
MAR77
APR77
MAY77

ELECTRIC
241.9
239.3
245.5
249.6
255.7

MASONRY
196.6
216.3
235.1
252.2
261.5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 163

Sashelp.yr1001 M-Competition 1001 Series, Annual


The Sashelp.yr1001 data set provides m-competition 1001 series, annual. The following steps display
information about the data set Sashelp.yr1001 and create Figure 1.98. The data set contains 126 observations.
title "Sashelp.yr1001 --- M-Competition 1001 Series, Annual";
proc contents data=sashelp.yr1001 varnum;
ods select position;
run;
title "The First Five Observations Out of 126";
proc print data=sashelp.yr1001(obs=5) heading=h noobs;
run;

164 F Chapter 1: Sashelp Data Sets

Figure 1.98 Sashelp.yr1001 M-Competition 1001 Series, Annual


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Variable

Type

T
S0001
S0002
S0003
S0004
S0005
S0006
S0007
S0008
S0009
S0010
S0011
S0012
S0013
S0014
S0015
S0016
S0017
S0018
S0019
S0020
S0021
S0022
S0023
S0024
S0025
S0026
S0027
S0028
S0029
S0030
S0031
S0032
S0033
S0034
S0035
S0036
S0037
S0038
S0039
S0040
S0041
S0042
S0043
S0044
S0045
S0046
S0047
S0048
S0049
S0050
S0051

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 165

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

Variable

Type

S0052
S0053
S0054
S0055
S0056
S0057
S0058
S0059
S0060
S0061
S0062
S0063
S0064
S0065
S0066
S0067
S0068
S0069
S0070
S0071
S0072
S0073
S0074
S0075
S0076
S0077
S0078
S0079
S0080
S0081
S0082
S0083
S0084
S0085
S0086
S0087
S0088
S0089
S0090
S0091
S0092
S0093
S0094
S0095
S0096
S0097
S0098
S0099
S0100
S0101
S0102
S0103

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

166 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

Variable

Type

S0104
S0105
S0106
S0107
S0108
S0109
S0110
S0111
S0112
S0113
S0114
S0115
S0116
S0117
S0118
S0119
S0120
S0121
S0122
S0123
S0124
S0125
S0126
S0127
S0128
S0129
S0130
S0131
S0132
S0133
S0134
S0135
S0136
S0137
S0138
S0139
S0140
S0141
S0142
S0143
S0144
S0145
S0146
S0147
S0148
S0149
S0150
S0151
S0152
S0153
S0154
S0155

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 167

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208

Variable

Type

S0156
S0157
S0158
S0159
S0160
S0161
S0162
S0163
S0164
S0165
S0166
S0167
S0168
S0169
S0170
S0171
S0172
S0173
S0174
S0175
S0176
S0177
S0178
S0179
S0180
S0181
S0182
S0183
S0186
S0187
S0190
S0193
S0194
S0197
S0198
S0200
S0201
S0202
S0203
S0204
S0208
S0209
S0210
S0211
S0214
S0215
S0216
S0218
S0220
S0221
S0222
S0223

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

168 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260

Variable

Type

S0227
S0232
S0239
S0241
S0242
S0243
S0244
S0245
S0246
S0247
S0248
S0249
S0250
S0251
S0252
S0253
S0254
S0255
S0256
S0257
S0258
S0259
S0260
S0261
S0262
S0263
S0264
S0265
S0268
S0269
S0271
S0272
S0273
S0274
S0275
S0279
S0281
S0282
S0283
S0284
S0288
S0291
S0294
S0295
S0298
S0299
S0300
S0302
S0303
S0304
S0305
S0306

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 169

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312

Variable

Type

S0309
S0310
S0311
S0312
S0313
S0314
S0315
S0316
S0319
S0320
S0321
S0327
S0331
S0334
S0339
S0340
S0341
S0342
S0343
S0346
S0347
S0348
S0349
S0350
S0353
S0354
S0355
S0356
S0357
S0358
S0359
S0362
S0372
S0373
S0377
S0379
S0385
S0386
S0392
S0399
S0400
S0402
S0408
S0411
S0424
S0425
S0430
S0431
S0432
S0433
S0443
S0447

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

170 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364

Variable

Type

S0478
S0482
S0483
S0484
S0485
S0494
S0500
S0517
S0518
S0519
S0530
S0531
S0532
S0535
S0549
S0550
S0551
S0553
S0555
S0556
S0558
S0561
S0564
S0568
S0582
S0583
S0586
S0602
S0603
S0604
S0612
S0636
S0637
S0638
S0639
S0650
S0651
S0654
S0656
S0660
S0677
S0679
S0682
S0685
S0686
S0689
S0691
S0693
S0696
S0707
S0708
S0709

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 171

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416

Variable

Type

S0711
S0713
S0717
S0719
S0720
S0721
S0722
S0723
S0724
S0725
S0726
S0727
S0728
S0729
S0730
S0764
S0772
S0773
S0774
S0775
S0776
S0777
S0778
S0779
S0781
S0782
S0788
S0797
S0804
S0805
S0806
S0807
S0808
S0809
S0810
S0812
S0813
S0814
S0815
S0816
S0817
S0818
S0819
S0820
S0821
S0823
S0824
S0827
S0828
S0829
S0830
S0831

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

172 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468

Variable

Type

S0832
S0833
S0834
S0836
S0837
S0838
S0839
S0843
S0844
S0845
S0846
S0848
S0849
S0855
S0856
S0858
S0863
S0870
S0874
S0880
S0881
S0882
S0883
S0884
S0885
S0886
S0887
S0888
S0889
S0890
S0891
S0892
S0893
S0894
S0895
S0896
S0902
S0915
S0916
S0917
S0918
S0919
S0920
S0921
S0922
S0923
S0924
S0925
S0926
S0928
S0929
S0930

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr1001 M-Competition 1001 Series, Annual F 173

Figure 1.98 continued


Sashelp.yr1001 --- M-Competition 1001 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505

Variable

Type

S0935
S0941
S0942
S0943
S0944
S0945
S0946
S0947
S0948
S0949
S0950
S0951
S0959
S0960
S0961
S0962
S0963
S0964
S0965
S0966
S0967
S0968
S0969
S0970
S0971
S0972
S0973
S0974
S0975
S0976
S0977
S0979
S0987
S0988
S0989
S0996
S1000

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

174 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


The First Five Observations Out of 126
T S0001 S0002 S0003 S0004

S0005

1 3600 12654 2142 5774 432312


2 7700 22879 12935 7650 569011
3 12300 34164 19130 9271 862673
4 30500 49524 30500 21447 1155640
5 47390 64761 48177 28998 1439290
S0015

S0016

574.900
519.300
545.500
562.900
630.200

4.97358
5.08749
5.21202
5.37025
5.58649

S0027

S0017 S0018

2022
9193
3687
3554
3046

S0007

S0008

S0009

S0010

894.50
1501.70
1971.20
2249.40
3029.50

332381
352429
358621
424889
509281

283219
326815
408814
440834
460495

506190
534047
581982
576326
604878

19.1300
21.6700
21.1700
23.3700
25.3600

S0019

1045
5 2189.29
12031 8536 2830.64
20306 18971 2256.02
25513 32850 2698.04
35766 70608 3372.33

S0028 S0029 S0030

13553800
13198800
13535696
9686224
10267800

S0006

589
635
671
671
671

553
631
546
601
699

S0031

S0020

S0021

141
863
2245
5202
8637

51.4000
49.3000
50.0000
57.0000
61.6000

S0032 S0033

77.200
130.500
136.200
108.900
109.900

111
115
146
139
131

S0022

S0023

40
40
40
52
80

S0056 S0057
83702
78925
87571
88408
86866

248
261
261
290
315

7400
7413
7254
6226
6534

S0058

1083
2666
2393
3109
5071

S0059

3022
4177
3751
5320
8397

S0060

23350 67.500 11460 109.000


23685 62.300 23150 94.400
24427 112.400 31539 210.000
24716 175.500 26390 27.800
25632 238.800 17757 51.300

35
188
318
425
493

1565 74.400
1805 121.000
1695 116.900
1969 97.000
2301 95.400

S0061 S0062
1560
506
797
451
539

607
377
317
155
152

12031
20306
25513
35766
37868

S0035

S0036

S0037

9160
8837
7907
7104
7103

186.250
163.980
168.010
192.570
188.930

54.2000
65.1000
97.0000
91.5000
86.7000

S0063
242000
281243
310000
316070
348174

4388
4851
5322
5018
5037

119
111
163
203
197

S0052
402240
416673
429306
422028
440946

263
992
437
35
55

S0025

2.56817 131.50 11.500


0.100
2.58339 576.50 143.200 65.300
2.60319 1033.80 178.300 233.900
2.62582 1223.20 122.100 297.200
2.63720 1202.90 110.800 307.300

S0034

5
8536
18971
32580
70608

2075 2197
2359 2394
2101 7308
2371 22583
2700 53193

S0024

S0041 S0042 S0043 S0044 S0045 S0046 S0047 S0048 S0049 S0050 S0051
15858
16878
16168
16782
17006

S0011 S0012 S0013 S0014


23180
21827
32567
9717
27319

S0026
18820896
18322288
19123200
13393000
14257400

S0038 S0039 S0040


3315
3924
3838
3874
4082

3007
3010
3192
3323
3680

6180
6555
6533
6692
6940

S0053 S0054 S0055


137598
151945
153433
187552
187981

S0064

S0065

S0066

3821700
2875600
3521640
3788670
3723270

2440.40
4046.40
4526.10
5800.30
7468.70

68
81
105
126
145

4351
10303
14335
23996
57704

S0067
149020
154580
155500
154470
160120

9923
11387
15423
29402
25348

S0068
120.000
230.000
221.300
286.300
429.700

S0069

S0070

S0071

S0072

S0073

S0074

S0075

S0076

S0077

S0078

S0079

S0080

7.300
6.300
26.800
114.500
262.700

22.0000
27.7000
43.9000
64.5000
99.7000

25.9000
35.7000
48.5000
63.8000
74.8000

19.4000
35.5000
25.4000
22.4000
73.2000

8.5000
22.8000
26.9000
27.6000
31.1000

246.800
299.600
246.400
289.800
250.900

142.240
137.800
127.600
137.600
141.800

27.6000
29.4000
26.4000
24.5000
28.7000

16.2450
16.9020
14.6120
14.8700
17.0870

248
261
261
290
315

897.21
1410.83
1306.81
1031.58
1508.36

19.7000
21.1000
26.9000
26.7000
22.3000

Sashelp.yr1001 M-Competition 1001 Series, Annual F 175

Figure 1.98 continued


The First Five Observations Out of 126
S0081

S0082

27562.19
36027.69
32254.00
33906.59
43264.88

S0083 S0084

13.6000
21.2000
18.6000
21.6000
21.2000

417
451
360
525
392

165
172
224
224
151

S0085

S0086

S0087

S0088

S0089

S0090

S0091

S0092

60.700
91.100
106.200
112.200
120.100

34.2000
49.3000
52.2000
55.5000
57.5000

1.76000
4.13000
7.04000
7.82000
6.62000

4.48000
4.52000
3.71000
4.30000
5.66000

11.4000
11.5000
11.8000
10.6000
11.4000

7.15000
7.89000
8.28999
8.10000
8.05000

2.14000
2.07000
2.53000
2.40000
2.54000

2.72000
2.58000
2.86000
2.83000
3.15000

S0093

S0094

S0095

S0096

S0097

S0098

137.310
147.780
152.390
158.980
164.730

35.9200
38.0600
44.0500
45.4900
41.4500

35.6400
37.5600
36.1600
36.4000
39.5400

5.97000
3.89000
3.87000
1.68000
3.73000

54
58
60
62
65

56.3700
58.2400
54.5500
60.4300
66.4700

S0107

S0108

13807
18744
17992
16934
17746

242167
279232
293180
306635
304918

S0109

S0110 S0111

25.2900
21.6800
18.8300
18.1700
22.8500

237
273
286
261
287

232
264
266
254
275

S0120

S0121

S0122

S0123

3.70000
4.10000
4.20000
4.20000
4.60000

4.40000
4.60000
4.80000
5.00000
5.20000

2.20000
2.30000
2.30000
2.40000
2.60000

49.6400
51.7500
53.1600
56.0100
57.9700

S0099 S0100 S0101

20965
22623
23457
23614
23710

21275
23619
26454
29291
31643

25585
24510
23821
27703
27313

14243
32555
46046
48715
41519

67
60
85
96
118

86
86
71
66
80

33.0000
34.9000
37.6000
43.7000
44.6000

S0103 S0104 S0105 S0106


191562
206884
217342
230677
237258

34666
55413
69517
73404
68004

53841 6545
56919 10170
57136 4555
60905 4461
62833
711

S0112

S0113

S0114

S0115

S0116

S0117

S0118

S0119

474.000
486.900
484.000
490.500
503.000

2.70000
3.10000
3.40000
3.80000
3.50000

4.70000
5.20000
5.30000
5.50000
5.90000

47.4000
52.6000
57.3000
61.9000
66.3000

28.9000
31.1000
32.5000
34.9000
36.3000

11.5000
11.8000
12.1000
13.1000
14.0000

6.70000
6.60000
6.70000
7.10000
7.40000

2.50000
2.70000
2.70000
3.10000
3.20000

S0124

S0125

S0126

S0127

S0128

S0129

S0130

S0131

14.4800
14.1400
17.5200
20.3200
16.1600

21.4700
24.0900
26.5900
24.9600
25.3900

14.3800
13.8100
12.3000
11.9200
12.1800

15.4000
16.3000
15.5400
15.7200
16.8000

15.5600 9.7800 5.66000 57.1400


17.2200 9.9200 6.79000 62.3700
17.4000 10.0300 7.16000 64.8700
18.0600 10.1900 7.60000 67.2800
18.5900 10.5000 8.53000 69.1400

S0132 S0133 S0134 S0135 S0136 S0137 S0138 S0139


53473
59926
63014
63903
64947

96
96
80
74
85

S0102

20423
21858
23471
24689
26485

19810
17922
17930
18669
20109

18654
20651
20216
21503
20552

S0140

S0141

28.9000 7929980
31.0000 9001736
33.1000 9794088
34.9000 10002096
36.5000 10403296

S0142 S0143 S0144 S0145 S0146


2631
2898
3185
3500
3695

1214
1288
1272
1296
1391

841
886
934
1001
1056

586
662
686
832
966

814
1074
1440
1521
1515

S0147 S0148 S0149 S0150 S0151 S0152 S0153 S0154 S0155 S0156 S0157 S0158 S0159 S0160 S0161 S0162
1312
1420
1536
1604
1695

331
376
494
630
645

469
511
564
597
655

900
1002
1048
1132
1252

1552
1418
1394
1450
1561

159
110
80
95
141

30450
30700
30940
31190
31410

223
236
262
238
243

2067
2261
2102
1590
1768

498
501
496
508
503

372
392
376
386
401

369
385
367
378
399

741
777
743
764
800

897
903
894
913
904

965
973
963
984
973

2822
2859
4602
3740
3852

176 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


The First Five Observations Out of 126
S0163

S0164

S0165

S0166

S0167

40.9000
40.5000
40.1000
40.0000
40.0000

40.4000
39.8000
39.2000
40.3000
39.7000

1305
2219
1922
1029
980

24.7000
25.0000
24.7000
24.9000
25.0000

9.60000
9.20000
9.30000
9.30000
9.60000

S0176
26139
26214
26276
26364
26436

S0177 S0178 S0179


290783
285242
293718
295804
294582

11693
11702
11703
11557
11951

S0198 S0200
393004
374303
417670
414987
436997

21194
13377
11982
12072
11927

8438
8689
8590
8763
8710

1259
2202
3071
2732
3836

63788
59714
68502
71273
81679

2.47000
2.35000
2.30000
2.28000
2.24000

1586570
1674530
1602380
1547070
1553470

393
414
413
428
450

S0186

S0187

S0182

S0183

55.9100
54.7000
55.3000
55.7500
55.4600

564
841
854
689
559

0.54000
0.78000
0.82000
0.46000
0.52000

97
95
95
94
93

S0203

462914
430743
402723
389922
421822

101802
98612
108001
105627
103518

113113
109569
120001
117363
115020

49954
16602
23786
13457
10060

S0170

S0181

S0202

13313
10780
10744
12584
15299

398464
386768
382665
393754
391853

S0169

S0180

S0201

S0220 S0221 S0222 S0223

S0168

503674
549712
547329
555894
544511

S0204

S0208

S0209

135.608
132.218
127.232
125.238
126.036

156.200
166.300
173.900
177.600
192.700

13.7000
10.9000
12.9000
13.9000
5.6000

S0227

S0232

S0239

0.78000
0.83000
0.88000
1.04000
0.94000

99
107
104
105
113

2989.43
2847.18
3177.06
3156.65
3324.07

113113
109569
120001
117363
115020

S0171 S0172 S0173 S0174


24152
24217
24317
24401
24510

3676
1190
1972
2711
2621

S0210 S0211

65
66
67
68
67

307198
305958
310322
310311
308746

489
698
861
958
461

205
219
198
226
234

587
717
571
523
457

19168
16279
12767
13116
13141

S0214 S0215 S0216 S0218


81042
97471
100051
94505
92247

S0241 S0242 S0243 S0244


22
22
21
21
21

393
425
386
464
498

S0190 S0193 S0194 S0197

462.914
430.743
402.723
389.922
421.822

42413
42968
25729
41482
60789

418
453
410
492
528

S0175

108
110
106
104
104

839
835
839
869
840

S0245

1173
1439
1657
1425
1675

S0246

15.6000
16.0000
16.0000
15.8000
15.8000

66
71
73
73
75

104
109
156
174
243

S0247
152.200
152.500
154.700
157.600
161.300

S0248

S0249

S0250

S0251

S0252

S0253

S0254

S0255

S0256

S0257

S0258

S0259

73.6000
73.3000
74.4000
76.5000
78.6000

121.600
124.800
129.200
132.400
138.500

28.5600
29.7700
28.3000
32.8500
31.8900

51.7700
61.4200
61.1200
61.7300
61.8900

105.300
107.600
103.100
106.200
103.600

84
85
87
88
87

103.400
104.840
106.730
109.010
111.580

102.600
104.500
106.200
108.800
111.800

103.200
105.300
107.200
108.500
110.900

104.300
106.100
107.500
109.800
113.200

1031.20
1052.90
1078.10
1106.80
1122.30

5472
5884
6316
6488
6720

S0260 S0261 S0262 S0263 S0264 S0265 S0268 S0269


6176
5972
6092
6116
6172

27244
28140
29140
29588
30936

7727
7816
8171
8382
8511

2631
2648
2836
2835
2651

8171
8270
8744
9099
9322

1473
1435
1509
1689
1850

226
204
203
212
193

19308
20088
20660
21212
21396

S0271

S0272

S0273

13.9000
15.6000
15.2000
15.1000
16.0000

13.6000
13.5000
13.9000
13.8000
13.7000

2.70000
6.10000
3.20000
8.39999
3.00000

S0274

S0275

11.1000 26.200
14.0000 42.600
15.9000 68.000
17.1000 93.400
14.9000 193.500

S0279
368.300
451.400
472.400
522.000
461.100

Sashelp.yr1001 M-Competition 1001 Series, Annual F 177

Figure 1.98 continued


The First Five Observations Out of 126
S0281

S0282

S0283

101.600
99.400
102.300
103.400
103.500

132.100
176.700
171.700
215.200
119.600

82.0000
81.8000
81.4000
81.1000
80.7000

S0303

S0304

S0305

S0306

11.1200
11.6100
11.5900
11.6200
11.8200

474.000
486.900
484.000
490.500
503.000

94.3000
95.1000
94.3000
94.2000
93.9000

28.0000
30.8000
27.9000
27.0000
28.9000

S0320

S0321

S0327

S0331

S0334

S0339

S0340

S0341

S0342

S0343

12.4600
12.4100
13.5300
13.4200
13.9900

35.5000
36.0000
35.2000
33.7000
32.5000

209.600
211.600
211.700
214.800
216.500

79.9000
84.8000
85.1000
85.3000
88.2000

2.15000
2.36000
1.57000
1.45000
2.43000

235
248
264
285
290

49.8000
52.2000
54.2000
56.6000
61.2000

510.100
516.600
522.000
535.700
544.700

48.6000
49.3000
50.4000
52.8000
53.9000

69.8000
71.1000
72.6000
75.1000
76.3000

S0349
50
50
49
51
54

S0350

S0353

S0284

S0288

S0291 S0294

6024 105.500
5960 109.900
6088 63.000
6140 80.300
6356 114.700

S0354

5.13300 98.200 95.700


5.15500 99.100 97.500
5.17400 100.200 100.000
5.20100 100.700 102.200
5.22100 102.500 104.700

2830
3012
3032
3232
3242

S0309 S0310
688
692
695
696
702

2777
2827
2864
2924
2980

119
113
110
105
98

26
24
25
26
27

S0392

S0399

S0400

S0402

697458
1187650
1069690
1078430
1059910

61.6094
66.7435
71.8776
82.1458
87.2800

1061
1237
1613
1506
1306

372.833
377.494
559.250
442.740
410.117

155
155
159
159
157

1830.96
1356.26
1581.64
1717.27
3035.64

S0443

S0447

338.300
331.400
332.200
372.800
369.400

S0482 S0483 S0484


587
717
571
523
457

S0299

S0300

S0302

49.7000
53.8000
55.1000
49.0000
39.0000

299.000
304.100
311.200
316.400
320.400

197.500
201.700
203.600
205.700
212.000

66.1000
67.1000
69.6000
72.0000
73.4000

69.7000
71.6000
73.6000
75.5000
76.0000

S0311

S0312

70.3000
73.5000
78.1000
81.1000
82.7000

48.4000
48.8000
49.3000
49.8000
50.0000

18
19
15
11
8

S0386

105.500 73.266
105.400 79.371
115.400 85.477
123.100 97.688
129.100 103.793

S0298

S0313 S0314 S0315 S0316


7967
8036
8106
8176
8246

20356
21040
21220
21852
22320

17332
17688
17768
18200
18388

277
130
279
489
555

587
717
571
523
457

230
231
231
231
231

55
41
42
43
42

73
71
65
59
52

183
202
207
210
210

S0408 S0411 S0424 S0425


885
870
866
859
862
S0485

14.9525
14.1739
16.1850
17.0200
16.0844

682
626
1084
1133
896

180
147
148
137
179

140
250
222
210
200

119
328
200
290
471

60
90
104
101
78

S0430
175.245
176.459
182.810
191.282
184.891

S0319
51.1900
56.6400
56.9600
60.4100
60.8700

S0346 S0347 S0348


20
21
23
24
27

S0355 S0356 S0357 S0358 S0359 S0362 S0372 S0373

S0385

S0478

262
258
270
286
279

S0295

54
65
79
79
71

S0377

S0379

41.0000
41.1000
41.4000
40.9000
41.0000

62
63
63
63
64

S0431 S0432
2285
2396
2390
1704
2099

8
8
7
6
5

1396
1548
2131
1337
1267

S0433
6.78106
6.82220
6.86380
6.50279
6.56667

S0494 S0500 S0517 S0518 S0519 S0530 S0531


36500
34800
22900
29800
32450

54
151
346
407
540

8605
12337
11647
9730
9462

3645
494
5203 7037
4313 8029
6015 8453
6127 10756

1732
2760
2092
2728
1462

386
623
350
472
443

178 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


The First Five Observations Out of 126
S0532

S0535

475
512
610
639
613

8.20000
7.90000
9.60000
8.60000
9.39999

S0549 S0550 S0551 S0553 S0555 S0556 S0558


1446
1446
1664
1601
1504

2346
3388
4020
3476
2497

6287
7406
8743
5571
6309

613
696
402
285
1215

S0586

S0602

843.239
842.104
841.644
849.009
828.287

2.38000
2.49000
2.39000
1.77000
1.63000

450
383
424
377
358

S0660

S0677

S0679

S0682

S0685

9.92000
7.92000
7.96000
9.18999
7.65000

151.800
150.400
160.000
167.000
160.300

73
144
149
155
147

80.2000
72.5000
66.1000
52.2000
80.7000

28.7000
28.4000
27.1000
31.2000
31.0000

S0711

S0713

7.51000
6.46000
6.17000
8.50000
9.95000

217
229
473
1144
1649

48
38
47
34
40

508
480
518
415
440

S0561

S0564

S0568

S0582

S0583

7.20000
6.20000
6.40000
6.70000
6.10000

139220
146061
144560
133360
132701

16.4636
18.4047
17.2416
18.4080
23.4722

16923.30
14353.90
11198.30
12787.80
12186.50

431.709
403.534
387.630
434.363
412.445

S0603 S0604 S0612 S0636 S0637 S0638 S0639


123
124
123
125
125

S0717

5428
5345
6166
6015
6144

248
458
411
196
267

930
848
983
630
610

S0729

S0730

S0764

S0772

7.53000
6.91000
7.42000
7.72000
7.69000

4.80000
4.93000
4.03000
3.48000
4.64000

35889
33259
34508
34860
34649

373.300
375.900
377.700
378.500
379.000

S0788

S0797

97.2000
99.0000
98.0000
98.2000
98.4000

59
62
62
62
62

678.800
678.300
679.500
683.500
688.900

1430
1600
810
650
1345

2545
2620
3628
3682
3161

S0686 S0689
149
197
216
288
274

310
350
346
352
308

757
1061
1040
1288
1304
S0691

26.4700
27.3700
27.4000
23.8600
35.7400

7359
7274
7175
7124
7319

S0773 S0774
1987
2143
1954
1927
1899

1089
1510
1485
1412
1409

S0804 S0805 S0806


2860
2846
3116
2173
2309

77123
77347
78986
79429
79241

2860
2812
3016
2173
1903

712
532
781
560
795

335
411
431
258
203

S0651

S0654

S0656

57.6000 10.7900 6.80000 0.56000


53.4000 9.9000 7.29000 0.55000
55.5000 10.3600 7.98000 0.79000
55.5000 10.4700 9.34000 0.72000
59.6000 9.8800 9.39999 0.79000
S0693 S0696
183
170
163
168
168

S0719 S0720 S0721 S0722 S0723 S0724

0.47000 10.2300
0.77000 9.1200
0.84000 8.0000
1.16000 10.2600
1.02000 9.8400

S0782

1500
1773
1591
1996
2384

S0650

1677
1829
1998
1903
1880

1046
1038
1124
1020
819

S0707

S0708

S0709

3.96000 9.4300 2.00000


3.44000 12.1900 1.95000
3.45000 9.6100 2.06000
4.07000 12.3500 2.00000
4.19000 10.0000 1.91000

S0725

S0726

S0727

S0728

23.8000
22.7000
21.5000
22.8000
22.2000

13.3700
11.1400
15.0000
14.9000
14.5500

15.2500
10.7400
10.6000
12.7400
14.4800

5.53000
4.59000
4.90000
5.90000
5.14000

S0775

S0776

S0777

S0778

S0779

S0781

1.85600
1.84300
1.84400
1.84800
1.85800

104.600
105.000
104.500
105.500
105.900

110.800
112.800
112.900
112.700
114.600

108.100
110.600
111.600
112.200
117.200

114.600
113.800
113.100
115.500
115.100

106.500
106.500
108.200
111.400
113.900

S0807

S0808

S0809

S0810

102.900
103.000
102.500
103.600
103.900

110.900
117.800
117.800
113.700
123.100

104.100
112.800
112.200
103.200
108.300

124.100
127.400
128.600
133.900
151.400

S0812

S0813

S0814

106.400 99.700 118.500


110.100 97.300 118.100
108.300 96.900 117.400
110.700 101.000 119.400
111.700 102.600 118.500

Sashelp.yr1001 M-Competition 1001 Series, Annual F 179

Figure 1.98 continued


The First Five Observations Out of 126
S0815

S0816

S0817

S0818

S0819

S0820

S0821

S0823

114.000
112.600
111.800
112.700
113.200

94.2000
96.0000
95.0000
95.1000
94.4000

94.0000
91.5000
93.4000
92.4000
92.4000

90.6000
94.3000
92.4000
91.2000
91.5000

82.9000
82.2000
81.3000
82.1000
79.5000

105.500
107.000
106.600
107.100
107.600

88.6000
89.1000
87.2000
87.3000
87.3000

184.300
185.900
186.500
185.500
187.000

S0831

S0833

S0834

112.460
112.990
114.280
114.890
115.580

43.9600
44.0000
44.2900
44.6100
45.0600

52.5600
53.1800
53.9700
54.9200
56.1100

1262
1285
1293
1304
1307

S0832

S0836

S0837

1603
1820
1517
1448
1467

19.1600
22.8000
21.8800
21.2400
21.6100

42
50
55
53
50

82
78
77
74
81

2077
2087
2095
2109
2114

5023
5004
5057
5132
5258

62301
63004
63616
64594
65455

4798
4821
4847
4883
4916

S0844

S0845

S0846

S0848

10.8200
11.4900
12.2900
13.5400
14.9900

101.400
99.100
102.800
105.000
107.700

106.500
105.900
113.100
117.100
120.200

104.600
101.900
100.200
102.700
101.000

126.200
128.200
128.400
129.500
131.200

43562
44618
45563
46203
47209

S0843

S0849

S0855

105.400
109.200
113.100
115.000
117.000

106.800
114.500
115.100
123.700
112.700

S0885

S0886

S0887

S0888

S0889

S0890

S0891

S0892

S0893

S0894

S0895

S0896

107.700
108.800
111.600
109.300
112.900

102.900
103.000
111.600
120.300
123.900

101.100
99.900
102.000
102.000
101.500

101.600
101.300
106.800
111.400
118.600

104.800
108.100
118.400
126.200
130.900

104.100
106.100
111.200
117.000
126.000

104.100
101.000
108.600
111.800
116.000

106.800
103.400
102.700
104.400
110.600

102.200
99.400
100.300
100.400
104.000

103.800
103.600
113.300
116.400
123.100

103.100
101.700
105.000
107.100
115.700

105.700
105.000
111.500
114.100
116.100

S0902

S0915

S0916

S0917

176.800
238.100
228.100
187.900
151.900

4.60000
4.40000
4.10000
4.60000
4.20000

138.800
132.600
137.300
138.100
142.800

32.0000
75.9000
76.1000
77.2000
77.5000

S0929 S0930
50
52
52
49
47

119
120
120
122
122

S0856 S0858 S0863

S0838 S0839

S0824 S0827 S0828 S0829 S0830

210
178
208
146
162

157
158
159
161
160

187
201
205
223
222

S0870

S0874

S0880

S0881

S0882

S0883

S0884

3.22000
2.18000
2.34000
2.83000
2.81000

3.42000
3.86000
3.71000
3.85000
3.56000

101.200
101.400
102.400
104.500
105.100

101.000
99.800
102.100
103.600
103.800

102.600
99.900
102.300
105.400
106.100

105.000
101.100
100.600
102.700
105.900

102.100
102.700
109.500
122.000
122.800

S0918 S0919 S0920 S0921 S0922


4029
3932
3950
3918
3764

63724
64188
64397
64942
65028

153
160
150
149
155

72356
72683
72713
73274
73395

1361
1278
1443
1524
1483

S0923
3.62000
3.94000
3.65000
3.85000
3.68000

S0935

S0941

S0942

S0943

S0944

S0945

S0946

13.3000
14.5000
13.4000
11.9000
12.0000

8.09000
7.60000
9.28000
7.13000
7.08000

1.06000
1.18000
1.30000
0.97000
0.87000

1.49000
1.21000
1.58000
1.24000
1.20000

3.15000
3.24000
3.43000
2.59000
2.59000

0.94100
0.80400
0.90500
0.96700
0.61400

0.37000
0.30000
0.46000
0.38000
0.63000

S0924 S0925 S0926 S0928


940
943
945
945
947

21046
21143
21296
21472
21762

583
500
708
687
583

134
142
142
143
143

S0947 S0948 S0949 S0950


497
322
865
757
637

1126
1182
1491
1184
1139

2131
1910
2486
1953
1927

1097
708
1344
937
799

180 F Chapter 1: Sashelp Data Sets

Figure 1.98 continued


The First Five Observations Out of 126
S0951 S0959 S0960
7906
7114
8270
5896
5813
S0970

85707
85535
86313
86284
86486

1198
1294
1224
1137
1180

S0971

S0961

S0962

S0963

S0964

S0965

S0966

S0967

S0968

S0969

5.90000
5.70000
5.90000
5.90000
5.90000

4.20000
4.00000
4.10000
4.30000
4.30000

5.50000
5.00000
5.40000
5.40000
5.90000

17.8000
18.8000
17.9000
17.3000
15.7000

5.30000
5.10000
5.30000
5.40000
5.30000

10.6000
10.5000
10.5000
9.6000
10.7000

3.00000
2.80000
2.80000
2.90000
2.90000

3.60000
3.30000
3.50000
3.40000
3.60000

7.10000
7.00000
6.90000
6.80000
6.80000

S0972

S0973

6.10000 9.8000 6.40000 6.70000


5.90000 10.3000 6.00000 6.10000
6.10000 9.8000 6.20000 6.30000
5.90000 10.6000 5.80000 5.80000
6.00000 12.5000 6.00000 6.30000

S0974 S0975 S0976 S0977 S0979 S0987 S0988 S0989 S0996


625
626
622
620
620

281
277
271
261
256

605
598
593
585
582

653
657
651
644
638

241
247
249
266
280

6
11
15
13
10

709
765
738
783
1002

S1000

6899 5765 55.9100


1837 6659 56.0000
3897
869 55.4500
3420 11363 56.0100
3123 5143 55.5400

Sashelp.yr111 M-Competition 111 Series, Annual F 181

Sashelp.yr111 M-Competition 111 Series, Annual


The Sashelp.yr111 data set provides m-competition 111 series, annual. The following steps display information about the data set Sashelp.yr111 and create Figure 1.99. The data set contains 126 observations.
title "Sashelp.yr111 --- M-Competition 111 Series, Annual";
proc contents data=sashelp.yr111 varnum;
ods select position;
run;
title "The First Five Observations Out of 126";
proc print data=sashelp.yr111(obs=5) heading=h noobs;
run;

182 F Chapter 1: Sashelp Data Sets

Figure 1.99 Sashelp.yr111 M-Competition 111 Series, Annual


Sashelp.yr111 --- M-Competition 111 Series, Annual
The CONTENTS Procedure
Variables in Creation Order
#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Variable

Type

T
S004
S013
S022
S031
S040
S049
S058
S067
S076
S085
S094
S103
S112
S121
S130
S139
S148
S157
S166
S175
S193
S202
S211
S220
S247
S256
S265
S274
S283
S310
S319
S346
S355
S373
S400
S517
S535
S553
S679
S724
S778
S805
S814
S823
S832
S886
S895
S922
S949
S967
S976

Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num
Num

Len
4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5

Sashelp.yr111 M-Competition 111 Series, Annual F 183

Figure 1.99 continued


The First Five Observations Out of 126
T

S004 S013

1 5774
2 7650
3 9271
4 21447
5 28998
S112
474.000
486.900
484.000
490.500
503.000
S256

S031

S040

2.56817
2.58339
2.60319
2.62582
2.63720

77.200
130.500
136.200
108.900
109.900

6180
6555
6533
6692
6940

263
992
437
35
55

S022

S121

S130

4.40000
4.60000
4.80000
5.00000
5.20000
S265

14.3800
13.8100
12.3000
11.9200
12.1800

S274

S157

18654
20651
20216
21503
20552

331
376
494
630
645

372
392
376
386
401

S283

11.1000
14.0000
15.9000
17.1000
14.9000

82.0000
81.8000
81.4000
81.1000
80.7000

S724

S778

S805

S814

77123
77347
78986
79429
79241

118.500
118.100
117.400
119.400
118.500

S310
2777
2827
2864
2924
2980

S067

S076

S085

S094

S103

12031 67.500 149020 27.6000 60.700 35.9200 191562


20306 62.300 154580 29.4000 91.100 38.0600 206884
25513 112.400 155500 26.4000 106.200 44.0500 217342
35766 175.500 154470 24.5000 112.200 45.4900 230677
37868 238.800 160120 28.7000 120.100 41.4500 237258
S148

1473
1435
1509
1689
1850

108.100
110.600
111.600
112.200
117.200

S058

S139

103.200
105.300
107.200
108.500
110.900

1677
1829
1998
1903
1880

S049

S319
51.1900
56.6400
56.9600
60.4100
60.8700

S823
184.300
185.900
186.500
185.500
187.000

S166

S175

S193

S202

S211

S220

307198
305958
310322
310311
308746

205
219
198
226
234

101802
98612
108001
105627
103518

489
698
861
958
461

1259
2202
3071
2732
3836

S346 S355 S373 S400

S517

S535

24.7000
25.0000
24.7000
24.9000
25.0000

20
21
23
24
27
S832

112.460
112.990
114.280
114.890
115.580

119
113
110
105
98

60
90
104
101
78
S886

102.900
103.000
111.600
120.300
123.900

103.100
101.700
105.000
107.100
115.700

152.200
152.500
154.700
157.600
161.300

S553 S679

155 8605 8.20000 613


155 12337 7.90000 696
159 11647 9.60000 402
159 9730 8.60000 285
157 9462 9.39999 1215
S895

S247

S922

S949

1361
1278
1443
1524
1483

2131
1910
2486
1953
1927

73
144
149
155
147
S967

3.00000
2.80000
2.80000
2.90000
2.90000

S976
605
598
593
585
582

184 F Chapter 1: Sashelp Data Sets

Sashelp.zh
The Sashelp.zh data set provides DBCS translation tables. ZH is for Chinese. The following steps display
information about the data set Sashelp.zh and create Figure 1.100. The data set contains 7,445 observations.
title "Sashelp.zh";
proc contents data=sashelp.zh varnum;
ods select position;
run;
title "The First Five Observations Out of 7445";
proc print data=sashelp.zh(obs=5) heading=h noobs;
run;

Figure 1.100 Sashelp.zh


Sashelp.zh
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3

unicode
ibm
pcms

Char
Char
Char

6
4
4

The First Five Observations Out of 7445


unicode

ibm

pcms

U+3000
U+3001
U+3002
U+30FB
U+02C9

4040
4344
4341
4345
4545

A1A1
A1A2
A1A3
A1A4
A1A5

Sashelp.zipcode US Zipcodes; Source: Zipcodedownload.com Jul 2013, SAS Release 9.4 F 185

Sashelp.zipcode US Zipcodes; Source:


Zipcodedownload.com Jul 2013, SAS Release 9.4
The Sashelp.zipcode data set provides US zip codes. The following steps display information about the data
set Sashelp.zipcode and create Figure 1.101. The data set contains 41,252 observations.
title "Sashelp.zipcode --- US Zipcodes; Source: Zipcodedownload.com Jul 2013, SAS"
" Release 9.4";
proc contents data=sashelp.zipcode varnum;
ods select position;
run;
title "The First Five Observations Out of 41252";
proc print data=sashelp.zipcode(obs=5) heading=h noobs;
run;

Figure 1.101 Sashelp.zipcode US Zipcodes; Source: Zipcodedownload.com Jul 2013, SAS Release 9.4
Sashelp.zipcode --- US Zipcodes; Source: Zipcodedownload.com Jul 2013, SAS Release 9.4
The CONTENTS Procedure
Variables in Creation Order
# Variable

Type Len Format Label

1 CITY2
2 STATENAME
2
3 ZIP
4 Y
5 X
6 ZIP_CLASS

Char
Char

7
8
9
10
11
12
13
14
15
16
17
18
19
20

CITY
STATE
STATECODE
STATENAME
COUNTY
COUNTYNM
MSA

AREACODE
AREACODES
TIMEZONE
GMTOFFSET
DST
PONAME
ALIAS_
CITY
21 ALIAS_
CITYN

Num
Num
Num
Char

64
64

Num
8
Char 12
Char
9
Num
8
Char
1
Char 35
Char 300

The 5-digit ZIP Code


Latitude (degrees) of the center (centroid) of ZIP Code.
Longitude (degrees) of the center (centroid) of ZIP Code.
ZIP Code Classification:P=PO Box U=Unique zip used for
large orgs/businesses/bldgs Blank=Standard/non-unique
Name of city/org
Two-digit number (FIPS code) for state/territory
Two-letter abbrev. for state name.
Full name of state/territory
FIPS county code.
Name of county/parish.
Metro Statistical Area code by common
pop-pre 2003; no MSA for rural
Single Area Code for ZIP Code.
Multiple Area Codes for ZIP Code.
Time Zone for ZIP Code.
Diff (hrs) between GMT and time zone for ZIP Code
ZIP Code obeys Daylight Savings: Y-Yes N-No
USPS Post Office Name: same as City
USPS - alternate names of city separated by ||

Char 300

Local - alternate names of city separated by ||

Char
Num
Char
Char
Num
Char
Num

8 Z5.
8 11.6
8 11.6
1

Clean CITY name for geocoding


Clean STATENAME for geocoding

35
8
2
25
8
25
8

186 F Chapter 1: Sashelp Data Sets

Figure 1.101 continued


The First Five Observations Out of 41252

CITY2

STATENAME2

ZIP

HOLTSVILLE
HOLTSVILLE
ADJUNTAS
AGUADA
AGUADILLA

NEWYORK
NEWYORK
PUERTORICO
PUERTORICO
PUERTORICO

00501
00544
00601
00602
00603

40.813078
40.813223
18.165950
18.383005
18.433236

COUNTY
103
103
1
3
5

COUNTYNM

MSA

Suffolk
Suffolk
Adjuntas
Aguada
Aguadilla

5380
5380
0
60
60

AREACODE
631
631
787
787
787

ZIP_
X CLASS CITY
-73.046388
-73.049288
-66.723627
-67.186553
-67.151954

AREACODES

TIMEZONE

631
631
787/939
787/939
787/939

Eastern
Eastern
Atlantic
Atlantic
Atlantic

U
U

STATE STATECODE

Holtsville
Holtsville
Adjuntas
Aguada
Aguadilla

GMTOFFSET
-5
-5
-4
-4
-4

DST
Y
Y
N
N
N

36
36
72
72
72

NY
NY
PR
PR
PR

STATENAME
New York
New York
Puerto Rico
Puerto Rico
Puerto Rico

PONAME

ALIAS_
CITY

Holtsville
Holtsville
Adjuntas
Aguada
Aguadilla

Ramey

ALIAS_CITYN

Colinas Del Gigante||Jard de Adjuntas||Urb San Joaquin


Alts de Aguada||Bo Guaniquilla||Comunidad Las Flores||Ext Los Robles||Urb Isabel la Catolica
Bda Caban||Bda Esteves||Bo Borinquen||Bo Ceiba Baja||Ext El Prado||Ext Marbella||Repto Jimenez||

Sashelp.zipmil US Military Zipcodes-Lat/LongNA Assigned Missing F 187

Sashelp.zipmil US Military Zipcodes-Lat/LongNA Assigned


Missing
The Sashelp.zipmil data set provides US military zip codes. The following steps display information about
the data set Sashelp.zipmil and create Figure 1.102. The data set contains 534 observations.
title "Sashelp.zipmil --- US Military Zipcodes-Lat/LongNA Assigned Missing";
proc contents data=sashelp.zipmil varnum;
ods select position;
run;
title "The First Five Observations Out of 534";
proc print data=sashelp.zipmil(obs=5) heading=h noobs;
run;

Figure 1.102 Sashelp.zipmil US Military Zipcodes-Lat/LongNA Assigned Missing


Sashelp.zipmil --- US Military Zipcodes-Lat/LongNA Assigned Missing
The CONTENTS Procedure
Variables in Creation Order
# Variable

Type Len Format Label

1 CITY2
2 STATENAME
2
3 ZIP
4 Y
5 X
6 ZIP_CLASS

Char
Char

7
8
9
10
11
12
13
14
15
16
17
18
19
20

CITY
STATE
STATECODE
STATENAME
COUNTY
COUNTYNM
MSA

AREACODE
AREACODES
TIMEZONE
GMTOFFSET
DST
PONAME
ALIAS_
CITY
21 ALIAS_
CITYN

Num
Num
Num
Char

64
64

Num
8
Char 12
Char
9
Num
8
Char
1
Char 35
Char 300

The 5-digit ZIP Code


Latitude (degrees) of the center (centroid) of ZIP Code.
Longitude (degrees) of the center (centroid) of ZIP Code.
ZIP Code Classification:P=PO Box U=Unique zip used for
large orgs/businesses/bldgs Blank=Standard/non-unique
Name of city/org
Two-digit number (FIPS code) for state/territory
Two-letter abbrev. for state name.
Full name of state/territory
FIPS county code.
Name of county/parish.
Metro Statistical Area code by common
pop-pre 2003; no MSA for rural
Single Area Code for ZIP Code.
Multiple Area Codes for ZIP Code.
Time Zone for ZIP Code.
Diff (hrs) between GMT and time zone for ZIP Code
ZIP Code obeys Daylight Savings: Y-Yes N-No
USPS Post Office Name: same as City
USPS - alternate names of city separated by ||

Char 300

Local - alternate names of city separated by ||

Char
Num
Char
Char
Num
Char
Num

8 Z5.
8 11.6
8 11.6
1

Clean CITY name for geocoding


Clean STATENAME for geocoding

35
8
2
25
8
25
8

188 F Chapter 1: Sashelp Data Sets

Figure 1.102 continued


The First Five Observations Out of 534

CITY2

STATENAME2

ZIP

APO
APO
APO
APO
APO

NEWYORK
NEWYORK
NEWYORK
NEWYORK
NEWYORK

COUNTY

COUNTYNM

MSA

AREACODE

.
.
.
.
.

none
none
none
none
none

.
.
.
.
.

.
.
.
.
.

09002
09003
09004
09005
09006

.
.
.
.
.

X
.
.
.
.
.

AREACODES

TIMEZONE

ZIP_
CLASS

CITY

M
M
M
M
M

APO
APO
APO
APO
APO

STATE

STATECODE

36
36
36
36
36

GMTOFFSET

DST

.
.
.
.
.

N
N
N
N
N

NY
NY
NY
NY
NY

PONAME
APO
APO
APO
APO
APO

STATENAME
New
New
New
New
New

ALIAS_
CITY

York
York
York
York
York

ALIAS_
CITYN

Sashelp.zt F 189

Sashelp.zt
The Sashelp.zt data set provides DBCS translation tables. ZT is for traditional Chinese. The following steps
display information about the data set Sashelp.zt and create Figure 1.103. The data set contains 13,459
observations.
title "Sashelp.zt";
proc contents data=sashelp.zt varnum;
ods select position;
run;
title "The First Five Observations Out of 13459";
proc print data=sashelp.zt(obs=5) heading=h noobs;
run;

Figure 1.103 Sashelp.zt


Sashelp.zt
The CONTENTS Procedure
Variables in Creation Order
#

Variable

Type

Len

1
2
3
4
5
6

unicode
euc
ibm
hp15
pcibm
pcms

Char
Char
Char
Char
Char
Char

6
4
4
4
4
4

The First Five Observations Out of 13459


unicode

euc

ibm

hp15

pcibm

pcms

U+3000
U+FF0C
U+3001
U+3002
U+FF0E

A1A1
A1A2
A1A3
A1A4
A1A5

4040
426B
4344
4341
424B

F5D1
F5DD
2020
2020
2020

8140
8143
8141
8142
8144

A140
A141
A142
A143
A144

190 F Chapter 1: Sashelp Data Sets

References
Fisher, R. A. (1936), The Use of Multiple Measurements in Taxonomic Problems, Annals of Eugenics, 7,
179188.
Zou, H. and Hastie, T. (2005), Regularization and Variable Selection via the Elastic Net, Journal of the
Royal Statistical Society, Series B, 67, 301320.

Das könnte Ihnen auch gefallen