Question: 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
Get step-by-step solutions from verified subject matter experts
