[R] Circular predictor in MARS

Pierric de Laborie
Mon, 23 Jul 2012 12:52:24 -0000

Hello,

I am currently trying to build a statistical model using MARS (multiple
adaptative regression splines) with package library "earth" v3.2-3

However I could not find a way to add a circular predictor, namely the wind
direction [0-360°] .  In GAMS (library "mgcv") there is the
possibility to
use special spline commands such as s(X,bs="cp") or
s(X,bs="cc"). Would you
know of anything similar for MARS ?

Thanks and regards,

Pierre

master student
Geneva

	[[alternative HTML version deleted]]