Re: [R] splineDesign and not-a-knot conditions

2006-11-15 Thread Tamas K Papp
I finally found the answer: the easiest way to enforce this is just removing the 2 knots, like this: ## thanks for all those who replied to the increasing sequences questions incseq <- function(a,b) { if (a <= b) seq.int(from=a,to=b) else integer(0) } ## remove & augment knots extendk

[R] splineDesign and not-a-knot conditions

2006-11-14 Thread Tamas K Papp
Hi, I would like to fit an (interpolating) spline to data where the derivatives at the endpoints of the interval are nonzero, thus the natural spline endpoint-specification does not make sense. Books (de Boor, etc) suggest that in this case I use not-a-knot splines. I know what not-a-knot spline