/* Exercise 2.5 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 H.-C. Jing & K. Hammond-Kosack, Rothamsted Research Version 1, 22/09/2014 */ * Read data - change directory to location of your data file; data TRITICUM; infile 'C:\stats4biol\data\TRITICUM.DAT' firstobs=2 expandtabs; input DSeed Weight Length Diameter Moisture Hardness; run; proc print data=TRITICUM (obs=10);run; * Plot data; symbol value=dot interpol=none; proc gplot data=TRITICUM; plot Weight*Length; run; * Sample statistics; proc means data=TRITICUM mean var; var Weight Length; run; * Variance-covariance and correlation coefficient; proc corr data=TRITICUM cov; var Weight Length; run;