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

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Wed May 13 02:25:49 CEST 2020


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 using 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 using 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.



More information about the R-help mailing list