SASUnit Examples
Version 1.5.0
Main Page
Modules
Files
File List
regression.sas
Go to the documentation of this file.
1
33
%MACRO regression(
34
data =
35
,x =
36
,y =
37
,out =
38
,yhat =
39
,parms =
40
,report =
41
);
42
43
%local dsid;
44
45
ods _all_ close;
46
ods rtf file=
"&report"
;
47
48
/*-- Compute regression analysis ---------------------------------------------*/
49
proc reg data=&data outest=&parms;
50
model &y = &x;
51
output out=&out(keep=&x &y &yhat) p=&yhat;
52
plot &y * &x;
53
run; quit;
54
55
ods rtf close;
56
57
%MEND regression;
58
saspgm
regression.sas
Generated on Fri Jan 16 2015 14:00:29 for SASUnit Examples by
1.8.4