/* sas1.sas: suggested solution for sas 1 exercise */ /* Bjarne Kjær Ersbøll 2001-09-23 */ title1 'SAS 1 - suggested solution'; data prob7; input x1 x2 x3; cards; 5.1 3.5 6.3 4.9 3.0 5.8 4.6 3.2 7.1 5.0 3.1 6.3 5.4 3.6 6.5 ; proc print data=prob7; title2 'Problem 7 - first 5 obs only'; proc princomp cov data=prob7; title2 'Problem 7 - covariance matrix, eigen-values & -vectors'; proc print data=stat2.sundhed; title2 'Print of fitness data'; proc plot data=stat2.sundhed; plot ilt*maxpuls; title2 '"Simple" plot of oxygen uptake vs max-pulse'; title3 'Graphically more pleasing plots can be made using "insight" or "gplot"'; proc gplot data=stat2.sundhed; plot ilt*maxpuls; title2 'Plot of oxygen uptake vs max-pulse'; run;