Yousri Fanous
2020-May-12 23:37 UTC
[R] How to write the segmented equation from MARS coefficients
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
Jeff Newmiller
2020-May-13 00:25 UTC
[R] How to write the segmented equation from MARS coefficients
Carefully read the description of the package... it uses a particular variety of splines. You should go read the paper they reference. On May 12, 2020 4:37:32 PM PDT, Yousri Fanous <yousri.fanous at gmail.com> wrote:>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 > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.