Re: [R] Bivariate Splines in R

From: Martin Maechler <>
Date: Tue 13 Dec 2005 - 21:11:26 EST

>>>>> "Cal" == Cal Stats <>
>>>>> on Mon, 12 Dec 2005 10:25:38 -0800 (PST) writes:

    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 mailing list PLEASE do read the posting guide! Received on Tue Dec 13 21:28:03 2005

This archive was generated by hypermail 2.1.8 : Tue 13 Dec 2005 - 23:37:58 EST