[R] How to write the segmented equation from MARS coefficients

Yousri Fanous you@r|@|@nou@ @end|ng |rom gm@||@com
Wed May 13 01:37:32 CEST 2020


Hello

I created a MARS model from earth package.for one predictor EngDispl vs FE.
These are the resulting coefficients:

 summary(marsFit)$coefficients
                        y
(Intercept)     18.049001
h(EngDispl-4.3) -4.378082
h(4.3-EngDispl) 10.925240
h(EngDispl-2.3)  5.942387
h(EngDispl-3.5) -2.552332

I am at a loss at writing the equation linking the dependent and
independent variables for such an output.
What is h? Is it a function / operator?

Thank you for your help

Yousri fanous
IBM Canada
Software developer



More information about the R-help mailing list