Hi there would someone be able to explain to me how the s(x1)
terms work in the GAMS?
For instance in the equation:
gam(response ~ s(x1) + s(x2) + s(x3))
Would each smoother variable be “accounting for the influence on each other and on the response” after than gam
was ran? In other words, would the graph produced between the response variable and x1
also account for the influence of x2
and x3
on the response? If not, if there a way to account for this interaction?
In addition to this, I'm wondering if this was a built model for one dataset could it be used on a different dataset to predict and generate values for the response variable of interest if I had data for x1
, x2
, and x3
?
I'm admittedly a beginner to GAMs in R so I'm having a hard time even knowing that vocab to find out how to understand this problem. I really appreciate any advice or insight anyone has.
help("te")
. Studyhelp("predict.gam")
to learn how to predict from the model with new data. $\endgroup$