SAS 中proc gam做非参数回归,能不能实现预测
data ex;
input x y;
cards;
33.35 1854
34.78 1857
36.22 1948
37.66 2017
39.09 2092
40.53 2197
41.76 2608
42.81 2973
43.9 3119
44.9 3654
51.0 .
;
run;
proc gam data=ex;
model y=spline(x)/dist=gaussian;
output out=predict pred=yp;
run;
如上,我想预测x=51.0的时候,y的值,请教各位高手,SAS中如何实现?
另外我想问一下:
局部多项式回归,窗宽(bandwidth)这个值,除了使用菜单中交互式数据分析,能否有过程步能够求解窗宽?