regression.sas

Go to the documentation of this file.
00001  
00028 %MACRO regression(
00029    data   =
00030   ,x      =
00031   ,y      = 
00032   ,out    = 
00033   ,yhat   = 
00034   ,parms  =
00035   ,report =
00036 );
00037 
00038 %local dsid;
00039 
00040 ods _all_ close;
00041 ods rtf file="&report"; 
00042 
00043 /*-- Compute regression analysis ---------------------------------------------*/
00044 goptions ftext=Swiss;
00045 proc reg data=&data outest=&parms; 
00046    model &y = &x; 
00047    output out=&out(keep=&x &y &yhat) p=&yhat; 
00048    plot &y * &x; 
00049 run; quit; 
00050 
00051 ods rtf close; 
00052 
00053 %MEND regression;
00054 

Generated on Sun Oct 10 14:10:15 2010 for SASUnit Examples by  doxygen 1.5.3