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 (Time Inc., 1987). The salaries are for the 1987 season, and the performance measures are from the 1986 season. The following steps display
information about the Sashelp.Baseball
data set and create Figure B.1:
title '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);
run;
Figure B.1: Baseball Data
Name |
Char |
18 |
Player's Name |
Team |
Char |
14 |
Team at the End of 1986 |
nAtBat |
Num |
8 |
Times at Bat in 1986 |
nHits |
Num |
8 |
Hits in 1986 |
nHome |
Num |
8 |
Home Runs in 1986 |
nRuns |
Num |
8 |
Runs in 1986 |
nRBI |
Num |
8 |
RBIs in 1986 |
nBB |
Num |
8 |
Walks in 1986 |
YrMajor |
Num |
8 |
Years in the Major Leagues |
CrAtBat |
Num |
8 |
Career Times at Bat |
CrHits |
Num |
8 |
Career Hits |
CrHome |
Num |
8 |
Career Home Runs |
CrRuns |
Num |
8 |
Career Runs |
CrRbi |
Num |
8 |
Career RBIs |
CrBB |
Num |
8 |
Career Walks |
League |
Char |
8 |
League at the End of 1986 |
Division |
Char |
8 |
Division at the End of 1986 |
Position |
Char |
8 |
Position(s) in 1986 |
nOuts |
Num |
8 |
Put Outs in 1986 |
nAssts |
Num |
8 |
Assists in 1986 |
nError |
Num |
8 |
Errors in 1986 |
Salary |
Num |
8 |
1987 Salary in $ Thousands |
Div |
Char |
16 |
League and Division |
logSalary |
Num |
8 |
Log Salary |
Allanson, Andy |
Cleveland |
293 |
66 |
1 |
30 |
29 |
14 |
1 |
293 |
66 |
1 |
30 |
29 |
14 |
American |
East |
C |
446 |
33 |
20 |
. |
AE |
. |
Ashby, Alan |
Houston |
315 |
81 |
7 |
24 |
38 |
39 |
14 |
3449 |
835 |
69 |
321 |
414 |
375 |
National |
West |
C |
632 |
43 |
10 |
475.0 |
NW |
6.16331 |
Davis, Alan |
Seattle |
479 |
130 |
18 |
66 |
72 |
76 |
3 |
1624 |
457 |
63 |
224 |
266 |
263 |
American |
West |
1B |
880 |
82 |
14 |
480.0 |
AW |
6.17379 |
Dawson, Andre |
Montreal |
496 |
141 |
20 |
65 |
78 |
37 |
11 |
5628 |
1575 |
225 |
828 |
838 |
354 |
National |
East |
RF |
200 |
11 |
3 |
500.0 |
NE |
6.21461 |
Galarraga, Andres |
Montreal |
321 |
87 |
10 |
39 |
42 |
30 |
2 |
396 |
101 |
12 |
48 |
46 |
33 |
National |
East |
1B |
805 |
40 |
4 |
91.5 |
NE |
4.51634 |