/* nllsqt0.sas -- demonstration of nonlinear least squares */ /* on a linear (polynomial) regression problem */ /* */ options ls = 80 ; * easier to read output ; data a ; input x y ; xx = x*x ; cards ; 1 4.5 2 5.5 3 6.5 4 8.0 5 10.0 6 12.0 ; run ; /* */ /* write out the data */ proc print data=a ; title 'nllsqt0 -- nonlinear least squares problem' ; run ; /* */ /* easy problem -- polynomial regression */ proc reg data=a ; model y = x xx ; title2 'real, real easy -- just quadratic regression' ; run ;