Search notes:

SAS - proc sgplot: regression fit

data eggs_why;
 /* drop i; */

  do i = 1 to 50;
     eggs = rand('unif')*5;
     why = (eggs-2)**3 + 0*(eggs+1)**2 - eggs*4 * 3 + rand('norm')*4; 
     output;
  end;

run;

ods graphics on;

proc sgplot data = eggs_why;
  reg y=why x=eggs / degree = 3 ;
run;
Github repository about-SAS, path: /programming/proc/sgplot/regression-fit_degree-3.sas

See also

proc sgplot

Index