11-19-2014 11:15 PM
I need your help about GAM procedure.
If I use the ADDITIVE suboption with class statement to get the additive component plots, estimates for the plots aren't reasonable.
Is there any solution?
proc gam data=dataset plots=component(additive);
model y= param(x0) spline(x1) spline(x2) / link=Identity dist=normal method=GCV;
11-20-2014 08:22 PM
When model only included continuous variable,
estimates of additive component in the data from ods output SmoothingComponentPlot were like left table.
On the other hand, when model include categorical variable, estimates were like right table.
11-21-2014 08:37 AM
It appears that the right hand column is giving the difference from the reference level of x0, which in the default case would be the last level. Perhaps you could add the value of the last level (or its mean/median if the class collapses several values) to get values more like those on the left.