I have been trying to generate generalized additive models (GAM) in R. For some reason, my commands are not working. For instance, a command such as fit
another possibly useful R package is VGAM (Vector Generalized Additive Models, with gam as special case). Very flexible and quite well documented if I recall.
I am able to bind my data and run the GAM script now. However, I need to write out the full equation in terms of the smoothing splines or functions. Each spline has an intercept and 9 coefficients which I can get by the command coeff(out). But, how do I write the entire model out as an equation, as I need to insert this model in another piece of code that will do prediction. And that code is in C#, so it cannot use the gam object.