OPTIONS LINESIZE=70;
TITLE1 'A Two Sample t-Test';
DATA T_Scores;
/* @@ means a loop in reading input variable sequence */
INPUT Gender $ Score @@;
CARDS;
F 75 F 76 F 80 F 77 F 80 F 77 F 73
M 82 M 80 M 85 M 85 M 78 M 87 M 82
;
RUN;
/* CLASS = name of the grouping variable */
/* VAR = name of the variable whose means to */
/* be compared */
PROC TTEST DATA=T_Scores;
CLASS Gender;
VAR Score;
RUN;
|