/* Exercise 2.1 Statistical Methods in Biology: Design and Analysis of Experiments and Regression by S.J. Welham, S.A. Gezan, S.J. Clark & A. Mead (2014) Chapman & Hall/CRC Press, Boca Raton, Florida. ISBN: 978-1-4398-0878-8 Version 1, 22/09/2014 */ * Read data - change directory to location of your data file; data GRASS; infile 'C:\stats4biol\data\GRASS.DAT' firstobs=2 expandtabs; input Quadrat Count; label Count = 'Number of Plants'; run; proc print data=GRASS;run; * Obtaining bar chart; axis2 label=('Number of plants'); proc gchart data=GRASS; vbar Count / levels=15; run; * Sample statistics; proc means data=GRASS mean median q1 q3 qrange; var Count; run; * Box plot; data GRASS;set GRASS; dummygroup=1; run; axis1 label=none value=none major=none; proc boxplot data=GRASS; plot Count*dummygroup / haxis=axis1; run;