Is there any way I can export a fitting performed with gam?
fit <- gam(y~s(x1)+s(x2), data = data)
I want to use the function in C or Python but I don't know if this is possible.
I know I can get the coefficients fit$coefficients but I don't know anything about the smoothers s(x1) and s(x2).
Second, can I do a fitting this way?
fit <- gam(y~s(x1)+s(x2)+s(x1/x2), data = data)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire