options ls=78;

 

data hwk4;

      infile 'hwk4.txt';

      input sn ecolor $ creat athl stress hap;

      sqcreat=sqrt(creat);

      lgcreat=log(creat);

      nrcreat=-1/(creat);

      sqathl=sqrt(athl);

      lgathl=log(athl);

      athl2=athl**2;

      athl3=athl**3;

      athl4=athl**4;

      sqstress=sqrt(stress);

      lgstress=log(stress);

      sqhap=sqrt(hap);

      hap2=hap**2;

      lghap=log(hap);

run;

 

proc print data=hwk4;

run;

 

proc univariate data=hwk4 plot normal;

      var creat lgcreat athl stress sqstress hap sqhap;

      title 'name, univariate normalizing';

run;

 

proc chart data=hwk4;

      vbar creat lgcreat athl stress sqstress hap sqhap/ levels=15;

      title 'name, histograms of data';

run;

 

proc means data=hwk4 n mean std clm alpha=.05;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

proc means data=hwk4 n mean std clm alpha=.1;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

proc means data=hwk4 n mean std clm alpha=.036;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

proc sort data=hwk4;

      by ecolor;

run;

 

proc univariate data=hwk4 plot normal;

      by ecolor;

      var creat lgcreat athl stress sqstress hap sqhap;

      title 'name, univariate normalizing';

run;

 

proc chart data=hwk4;

      by ecolor;

      vbar creat lgcreat / levels=11;

      title 'name, histograms of data';

run;

 

proc chart data=hwk4;

      by ecolor;

      vbar athl / levels=12;

      title 'name, histograms of data';

run;

 

proc chart data=hwk4;

      by ecolor;

      vbar stress sqstress / levels=13;

      title 'name, histograms of data';

run;

 

proc chart data=hwk4;

      by ecolor;

      vbar hap sqhap / levels=10;

      title 'name, histograms of data';

run;

 

proc means data=hwk4 n mean std clm alpha=.05;

      by ecolor;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

proc means data=hwk4 n mean std clm alpha=.1;

      by ecolor;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

proc means data=hwk4 n mean std clm alpha=.036;

      by ecolor;

      var lgcreat athl sqstress sqhap;

      title 'name, looking at means and confid limits overall';

run;

 

quit;