SASUnit Examples  Version 1.2
regression.sas
Go to the documentation of this file.
1 
32 %MACRO regression(
33  data =
34  ,x =
35  ,y =
36  ,out =
37  ,yhat =
38  ,parms =
39  ,report =
40 );
41 
42 %local dsid;
43 
44 ods _all_ close;
45 ods rtf file="&report";
46 
47 /*-- Compute regression analysis ---------------------------------------------*/
48 proc reg data=&data outest=&parms;
49  model &y = &x;
50  output out=&out(keep=&x &y &yhat) p=&yhat;
51  plot &y * &x;
52 run; quit;
53 
54 ods rtf close;
55 
56 %MEND regression;
57