SASUnit Examples
Version 1.2.1
Main Page
Modules
Files
File List
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
saspgm
regression.sas
Generated on Fri Feb 22 2013 13:52:21 for SASUnit Examples by
1.8.2