Fix the error and execute the program again in sas. DATA height; *** This is an example of column input; INPUT name $ 1-7 sex $ 10 age 12-13 height 15-18 weight 20-24 ** the following 2 statements are "sum statements" look at output to see how they work; count+1; totalwt+weight; CARDS; john m 12 59.0 99.5 james m 12 57.3 83.0 alfred m 14 69.0 112.5 william m 15 66.5 112.0 jeffrey m 13 62.5 84.0 mary f 15 66.5 112.0 alice f 13 56.5 84.0 ; PROC PRINT data=height; TITLE 'DATA: HEIGHT'; RUN; /* PROC SORT; BY sex; PROC MEANS; BY sex; VAR height weight; RUN; */
DATA height; *** This is an example of column input;
INPUT name
$ 1-7 sex $ 9 age 11-13 height 14-18 weight 19-24;** the following
2 statements are "sum statements" look at output to see how they
work;
count+1; totalwt+weight; CARDS;
john m 12 59.0 99.5
james m 12 57.3 83.0
alfred m 14 69.0 112.5
william m 15 66.5 112.0
jeffrey m 13 62.5 84.0
mary f 15 66.5 112.0
alice f 13 56.5 84.0
;
PROC PRINT data=height; TITLE 'DATA: HEIGHT';
RUN;
/* PROC SORT; BY sex; PROC MEANS; BY sex; VAR height weight; RUN;
*/
Get Answers For Free
Most questions answered within 1 hours.