Re: [R] Problems with mars in R in the case of nonlinear functions

2008-06-13 Thread Stephen Milborrow
ions in the earth documentation. Regards Steve | Message: 76 | Date: Thu, 12 Jun 2008 13:35:35 -0700 | From: Janne Huttunen <[EMAIL PROTECTED]> | Subject: [R] Problems with mars in R in the case of nonlinear | functions | To: | Message-ID: <[EMAIL PROTECTED]> | Content-Type: tex

[R] Problems with mars in R in the case of nonlinear functions

2008-06-12 Thread Janne Huttunen
Hi, I'm trying to use mars function in R to interpolate nonlinear multivariate functions. However, it seems that mars gives me a fit which uses only very few basis function and it underfits very badly. For example, I have tried the following code to test mars: require("mda") f <- function(x