Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using SAS script language: 13. (8 points) I want to find the average number of errors for Atlanta, Baltimore, and Boston, the number of left
Using SAS script language:
13. (8 points) I want to find the average number of errors for Atlanta, Baltimore, and Boston, the number of left fielders, and see if the salary has increased from $2 million for these teams. When I tried to run my program, it wouldn't run. Help me find where my errors are. Put an X by the line that has a mistake DATA = BASEBALL; INFILE 'C:USERS SUENDESKTOP BASEBALL.CSV' DELIMITER DSD: INPUT ? TEAM $ PLAYER $ SALARY POSITION ERRORS HITS IF TEAM = 'ATL' THEN SALARY 1 - SALARY ; IF TEAM = 'ATL' THEN N+1 RUN; PROC MEANS DATABASEBALL; VAR ERRORS RUN; PROC FREQ DATA BASEBALL TABLES POSITION /NOCUM NOPERCENT RUN; ODS GRAPHICS ON; PROC TTEST DATA = BASEBALL H0-2000000 SIDES-U ALPHA-0.05 PLOTS (SHOWHO); VAR SALARY; END; 13. (8 points) I want to find the average number of errors for Atlanta, Baltimore, and Boston, the number of left fielders, and see if the salary has increased from $2 million for these teams. When I tried to run my program, it wouldn't run. Help me find where my errors are. Put an X by the line that has a mistake DATA = BASEBALL; INFILE 'C:USERS SUENDESKTOP BASEBALL.CSV' DELIMITER DSD: INPUT ? TEAM $ PLAYER $ SALARY POSITION ERRORS HITS IF TEAM = 'ATL' THEN SALARY 1 - SALARY ; IF TEAM = 'ATL' THEN N+1 RUN; PROC MEANS DATABASEBALL; VAR ERRORS RUN; PROC FREQ DATA BASEBALL TABLES POSITION /NOCUM NOPERCENT RUN; ODS GRAPHICS ON; PROC TTEST DATA = BASEBALL H0-2000000 SIDES-U ALPHA-0.05 PLOTS (SHOWHO); VAR SALARY; END
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started