/* Exercise 2.2 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 Data from Rothamsted Research (A. Karp) Version 1, 22/09/2014 */ * Read data - change directory to location of your data file; data WILLOW; infile 'C:\stats4biol\data\WILLOW.txt' firstobs=2 expandtabs; input DBeetle Length Width; run; proc print data=WILLOW;run; * Obtaining histogram; axis1 label=('Beetle width'); proc univariate data=WILLOW; histogram Width / haxis=axis1; run; * Sample statistics; proc means data=WILLOW mean median; var Width; run;