search for: mygam3

Displaying 1 result from an estimated 1 matches for "mygam3".

2006 Mar 16
3
Did I use "step" function correctly? (Is R's step() function reliable?)
...Step: AIC= 153.45 col1 ~ col2 + col3 + col4 + s(col2, 3) + s(col3, 3) ----------------------------------------------- However, the lowest AIC model, " col1 ~ col2 + col3 + col4 + s(col2, 3) + s(col3, 3) + s(col4, 3)" does not give the best Residual Deviance. Instead, the model "mygam3=gam(col1 ~ s(col2, 6) + s(col3, 6) + s(col4, 6), data=X)" is the best, in fact, I found that as I increase the "degree-of-freedom", it always give better residual deviance, lower than that of the "best" model returned by "step" function... Please see below. I am...