options ls=78;

 

data class5;

      infile 'class5.txt';

      input sn gender $ anxiety memory bfperf afperf;

      sqanx=sqrt(anxiety);

      lgmem=log(memory);

      tdiff=(afperf-bfperf);

      ctdiff=(tdiff+64);

run;

 

proc print data=class5;

run; 

 

proc univariate data=class5 plot normal;

      var anxiety sqanx memory lgmem bfperf afperf ctdiff;

      title 'name, calculating univariate to examine skew';

run;

 

proc chart data=class5;

      vbar anxiety sqanx memory lgmem bfperf afperf ctdiff / levels=12;

      title 'name, histograms of data';

run;

 

proc sort data=class5;

      by gender;

run;

 

proc univariate data=class5 plot normal;

      by gender;

      var anxiety sqanx memory lgmem bfperf afperf ctdiff;

      title 'name, univariate when sorting by gender to examine skew';

run;

 

proc chart data=class5;

      by gender;

      vbar anxiety sqanx memory lgmem bfperf afperf ctdiff;

      title 'name, histograms of data when sorting by gender';

run;

 

proc ttest data=class5;

      class gender;

      var sqanx lgmem bfperf ctdiff;

      title 'name, examining the differences between genders';

run;

 

quit;