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;

 

上一篇:Postman


下一篇:刷题-力扣-1436. 旅行终点站