SAS pbsplineplot fit

 

 

ods html;

proc template;
define statgraph _pblineplot;
    begingraph;
        layout overlay / xaxisopts = (griddisplay = on) yaxisopts = (griddisplay = on);
            scatterplot x = horsepower y = mpg_city;
            pbsplineplot x = horsepower y = mpg_city / smooth = 1;
        endlayout;
    endgraph;
end;
run;

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

 

posted @ 2021-10-05 21:58  Iving  阅读(68)  评论(0编辑  收藏  举报