Hi, is there a way in R to generate a polynomial spline with multiple predictor variables? I have one response and two predictors and I'm trying to fit a spline model for this... Please cc me on the reply.. Thanks, nirmal
There are thin plate regression splines in mgcv and thin plate splines and tensor product splines in gss that will probably do what you want. See examples in mgcv helpfile ?gam for a couple of examples.> Hi, is there a way in R to generate a polynomial spline with multiple predictor > variables? I have one response and two predictors and I'm trying to fit a > spline model for this..._____________________________________________________________________> Simon Wood simon at stats.gla.ac.uk www.stats.gla.ac.uk/~simon/ >> Department of Statistics, University of Glasgow, Glasgow, G12 8QQ >>> Direct telephone: (0)141 330 4530 Fax: (0)141 330 4814
gam() and friends comes close. Not literally a cubic B spline, but the same effect. "Generalized Additive Models" a la Hastie and Tibshirani. - tom blackwell - u michigan medical school - ann arbor - On Sun, 6 Apr 2003, Nirmal Govind wrote:> Hi, is there a way in R to generate a polynomial spline with multiple predictor > variables? I have one response and two predictors and I'm trying to fit a > spline model for this... > > Please cc me on the reply.. > > Thanks, > nirmal > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >