SAS loessplot fit

loessplot 局部多项式拟合,

 

ods html;

proc template;
define statgraph _loessplot;
    begingraph;
        layout overlay / xaxisopts = (griddisplay = on) yaxisopts = (griddisplay = on);
            modelband  "Loess" / name = "loess" legendlabel = "95% Confidence";
            scatterplot x = horsepower y = mpg_city;
            loessplot x = horsepower y = mpg_city / clm= 'Loess';
            discretelegend 'loess' / location = inside halign = right valign = top;  
        endlayout;
    endgraph;
end;
run;

proc sgrender data = sashelp.cars(where = (type = "Sedan")) template = _loessplot;
run;

 

posted @ 2021-10-05 19:52  Iving  阅读(127)  评论(0编辑  收藏  举报