Skip to content
Prev 86211 / 398528 Next

3-d splinefun

Colby,

     Function surf() in package labdsv uses the gam() function from mgcv 
to do this in conjunction with akima.  You might want to look at that 
routine for an idea.  Currently it fits the gam as z <- gam(s(x) + s(y),
but it's possible in the mgcv version of gam to fit z <- gam(s(x,y)) as 
well.  The gam function gives a good interpolation with measured error 
and appropriate fit statistics.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts                                     office 406-994-4548
Professor and Head                                      FAX 406-994-3190
Department of Ecology                         email droberts at montana.edu
Montana State University
Bozeman, MT 59717-3460
Colby Tanner wrote:
--