Skip to content
Back to formatted view

Raw Message

Message-ID: <17310.40526.796239.318855@stat.math.ethz.ch>
Date: 2005-12-13T10:11:26Z
From: Martin Maechler
Subject: Bivariate Splines in R
In-Reply-To: <20051212182538.52822.qmail@web36404.mail.mud.yahoo.com>

>>>>> "Cal" == Cal Stats <calstats05 at yahoo.com>
>>>>>     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