Restricted cubic splines

A flexible method for fitting regression lines

Peter Flom
Towards Data Science
4 min readApr 8, 2019

--

A spline is a drafting tool for drawing curves. In statistics, splines are a broad class of methods for transforming variables. I first introduce the concept via linear splines and work my way to restricted cubic splines which is what I (and many others) recommend. You should be aware that there are a huge variety of splines and each has its…

--

--