- data a;
- input y x;
- datalines;
- 0.69 8.48
- 1.10 8.29
- 1.39 8.28
- 1.61 8.27
- 1.79 8.25
- 1.95 8.06
- 2.08 8.06
- 2.20 7.85
- 2.30 7.75
- 2.40 7.73
- ;
- proc reg data=a outest=est noprint;
- model y=x;
- run;
- quit;
- data _null_;
- set est;
- call symputx('a',put(Intercept,7.4));
- call symputx('b',put(x,7.4));
- run;
- proc template;
- define statgraph reg;
- mvar a b;
- begingraph;
- entrytitle 'Linear Regression';
- layout overlay;
- entry 'y=' a b 'x' /valign=top;
- scatterplot y=y x=x;
- regressionplot y=y x=x;
- endlayout;
- endgraph;
- end;
- run;
- proc sgrender data=a template=reg;
- run;


雷达卡
京公网安备 11010802022788号







