* SpringReg Example -- springreg.sas source code; options linesize=70 nodate; data spring; input disp force; title "Illustration of Hooke's Law"; label disp="Displacement of Spring" force="Counterforce of Spring"; datalines; 0 0 1 49 2 101 3 149 4 201 ; proc print; proc means; symbol1 value=dot color=black; proc reg corr data=spring; * Model 1: Regression through the origin; model force = disp / noint; plot force*disp; * Model 2: Simple linear regression; model force = disp; plot force*disp; run; quit;