R - Spline

> Procedural Languages > R

Table of Contents

1 - About

Fitting splines in R is easy: bs(x, …) for any degree splines (one: linear spline, three: cubic spline and ns(x, …) for natural cubic splines, in package splines.