options ls=78;

 

data class2;

      infile 'class2data.dat';

      input sn school $ region $ dep anx;

run;

 

proc print data=class2;

run;

 

proc univariate data=class2 plot;

      var anx dep;

      title 'name, univariate to assess distribution';

run;

 

proc means data=class2;

      var anx dep;

      title 'name, means for distributions';

run;

 

proc gchart data=class2;

      vbar anx dep / levels=10;

      title 'name, creating histograms to examine skew';

run;

 

proc sort data=class2;

      by region;

run;

 

proc univariate data=class2 plot;

      by region;

      var anx dep;

      title 'name, univariate sorted by region';

run;

 

proc means data=class2;

      by region;

      var anx dep;

      title 'name, examining means by region';

run;

 

proc gchart data=class2;

      by region;

      vbar anx dep / levels=7;

      title 'name, examining chart by region';

run;

 

proc sort data=class2;

      by school;

run;

 

proc univariate data=class2 plot;

      by school;

      var anx dep;

      title 'name, univariate sorted by school';

run;

 

proc means data=class2;

      by school;

      var anx dep;

      title 'name, means sorted by school';

run;

 

proc gchart data=class2;

      by school;

      vbar anx dep / levels=7;

      title 'name, examining chart by school';

run;

 

proc sort data=class2;

      by region school;

run;

 

proc univariate data=class2 plot;

      by region school;

      var anx dep;

      title 'name, univariate sorted by region and school';

run;

 

proc means data=class2;

      by region school;

      var anx dep;

      title 'name, means sorted by region and school';

run;

 

proc gchart data=class2;

      by region school;

      vbar anx dep / levels=7;

      title 'name, examining chart by region and school';

run;

 

quit;