我想做一个GAM的半参数模型,我的自变量是x1、x2、x3,应变量是Y,我建立的模型是这样的
model y=param(x1)spline(x2,df=3)spline(x3,df=3);
虽然有一大堆参数估计的结果,但是我想利用该模型进行预测,也就是说输入x1,x2,x3得到对应的Y,请问该怎么编程序,使用proc score吗?我好像搞不懂具体怎么弄?尝试了好几次,一直出错,请大家帮忙指点
to yly861215
concatenate your to-be-scored data after the modeling data, with dependent variable missing
PROC GAM will automatically score those with missing dependent variable