dfset function

Find degrees of freedom for a natural spline curve to minimise BIC or AIC