How to extract the cofficient from the MARS Spline Model for further usage in new data set?

I am doing a regression analysis on MARS Spline, where in the end an equation is formed just like the regression equation but with different basis functions, each basis function had its own coefficient and a constant. My question is that how could I save the coefficient of the equation so that I can put them in a new data set. My equation looks like:
BF1 = max(0, x3 -26.56)
BF2 = max(0, 26.56 -x3)
BF3 = BF2 * max(0, x4 -11)
BF4 = BF2 * max(0, 11 -x4)
y = 51.63 -0.3019*BF1 -0.6416*BF2 -4.103e-05*BF3 -0.006868*BF4

Answers (0)

Asked:

on 21 Nov 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!