Skip to content
Prev 82625 / 398506 Next

Bivariate Splines in R

Cal> Hi.., is there a function in R to fit bivariate splines
    Cal> ?  I came across 'polymars' (POLSPLINE) and 'mars'
    Cal> (mda) packages. Are these the one to use or are there
    Cal> other specific commands?

I'd recommend to use  gam(y ~ s(x1,x2))  from the recommended
package 'mgcv'.

help(gam)  has many examples, some of which using bivariate
splines.

    Cal> Thanks.
    Cal> Harsh
you're welcome;
Martin Maechler, ETH Zurich