search for: mygam1

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

Did you mean: mygam3
2006 Mar 16
3
Did I use "step" function correctly? (Is R's step() function reliable?)
...way up... Perhaps to avoid overfitting, I should do a cross validation. Is there an automatic Cross 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(col...