/*This is dataset in table 1.5-1*/ data sec1_5; input weight consum ; datalines; 3.4 5.5 3.8 5.9 4.1 6.5 2.2 3.3 2.6 3.6 2.9 4.6 2.0 2.9 2.7 3.6 1.9 3.1 3.4 4.9 ; run; proc reg data=sec1_5 ; model consum=weight ; /*When fitting the line: y=a+bx, use this statement*/ plot consum*weight; /*This prodecure gives the scatter plot including the fitted line*/ run; proc reg data=sec1_5 ; model consum=weight /noint; /*When fitting the line: y=bx, use this statement*/ plot consum*weight; run;