Open topepo opened 7 years ago
A periodic spline?
Sure! I'd never seen those and had to look it up.
I've never actually used them in base R because they have a different interface to all the other spline functions, but they seem useful.
mgcv
provides utilities that do a ton of cool basis function calculations that would be cool to incorporate in somewhere.
@max Some examples that use periodic splines (although I think the phrase "cyclic splines" is better for Googling). Lots of people use s(x, bs = "cc")
in mgcv
:
A bit late too the discussion.
@topepo any plan to add restricted cubic splines? e.g. tidymodels::step_rcs()
They are used a lot and advocated by the likes of Harrell, Steyerberg et al.