Displaying 1 result from an estimated 1 matches for "mygam2".
Did you mean:
mygam3
2006 Mar 16
3
Did I use "step" function correctly? (Is R's step() function reliable?)
...oss Validation inside "step" or "gam"?
Is "step" function result reliable? Or perhaps I used it incorrectly?
Thanks a lot,
Michael.
--------------------------
>
> mygam1=gam(col1 ~ col2 + col3 + col4 + s(col2, 3) + s(col3, 3) + s(col4,
3), data=X);
>
> mygam2=gam(col1 ~ col2 + col3 + col4 , data=X);
>
> mygam3=gam(col1 ~ s(col2, 6) + s(col3, 6) + s(col4, 6), data=X);
>
> mygam1
Call:
gam(formula = col1 ~ col2 + col3 + col4 +
s(col2, 3) + s(col3, 3) + s(col4, 3), data = X)
Degrees of Freedom: 110 total; 100.9999 Residual
Residual Devianc...