/* Simple Regression Example */ data travel ; input obs x y ; lable y = "Travel Time in hours" x = "Miles Traveled" ; cards ; 1 100 9.3 2 50 4.8 3 100 8.9 4 100 6.5 5 50 4.2 6 80 6.2 7 75 7.4 8 65 6.0 9 90 7.6 10 90 6.1 ; run ; proc sgplot data=travel ; scatter y=y x=x ; reg y=y x=x ; run ; proc corr data=travel COV ; var y x ; run ; proc reg data=travel ; model y = x ; run ;