SAS regressionplot

 

MODELBAND用来画置信区间的,只能和这三个plot一块使用。(LOESSPLOT, REGRESSIONPLOT, or PBSPLINEPLOT) 

 

ods html;

proc template;
define statgraph _regressionplot;
    begingraph;
        layout overlay / xaxisopts = (griddisplay = on) yaxisopts = (griddisplay = on);
            modelband  "Reg" / name = "band" legendlabel = "95% Confidence";
            scatterplot x = height y = weight;
            regressionplot x = height y = weight / cli= 'Reg';
            discretelegend 'band' / location = inside halign = right valign = bottom;  
        endlayout;
    endgraph;
end;
run;

proc sgrender data = sashelp.class template = _regressionplot;
run;

 

posted @ 2021-10-05 16:38  Iving  阅读(208)  评论(0编辑  收藏  举报