BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
caveman529
Calcite | Level 5

On Page 6753 of Examples: REG Procedure, we have the following incomplete data.  Just wondering where can I find the SAS dataset corresponding to the examples used in the SAS Documentation?  Thank you!


data baseball;

length name $ 18;

length team $ 12;

input name $ 1-18 no_atbat no_hits no_home no_runs no_rbi no_bb yr_major

cr_atbat cr_hits cr_home cr_runs cr_rbi cr_bb league $

division $ team $ position $ no_outs no_assts no_error salary;

logSalary = log10(salary);

label name="Player's Name"

no_hits="Hits in 1986"

no_runs="Runs in 1986"

no_rbi="RBIs in 1986"

no_bb="Walks in 1986"

yr_major="Years in MLB"

cr_hits="Career Hits"

salary="1987 Salary in $ Thousands"

logSalary = "log10(Salary)";

datalines;

Allanson, Andy 293 66 1 30 29 14

1 293 66 1 30 29 14

American East Cleveland C 446 33 20 .

Ashby, Alan 315 81 7 24 38 39

14 3449 835 69 321 414 375

National West Houston C 632 43 10 475

Davis, Alan 479 130 18 66 72 76

3 1624 457 63 224 266 263

American West Seattle 1B 880 82 14 480

Dawson, Andre 496 141 20 65 78 37

11 5628 1575 225 828 838 354

National East Montreal RF 200 11 3 500

Galarraga, Andres 321 87 10 39 42 30

2 396 101 12 48 46 33

National East Montreal 1B 805 40 4 91.5

Griffin, Alfredo 594 169 4 74 51 35

11 4408 1133 19 501 336 194

American West Oakland SS 282 421 25 750

... more lines ...

Wilson, Willie 631 170 9 77 44 31

11 4908 1457 30 775 357 249

American West KansasCity CF 408 4 3 1000

;

1 ACCEPTED SOLUTION
2 REPLIES 2
caveman529
Calcite | Level 5

Thank you so much.  I was not able to find it myself.  You are good ~~~ Smiley Happy

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 739 views
  • 0 likes
  • 2 in conversation