Im using the bSpline function on R (under the splines2 package) and I'm a little confused on the output. My understanding was that if I made sure the knot sequence was nested, then the columns produced in bSpline should also be nested. However, this is not what the output is giving me.
For example, consider the following code
n=20
library(splines2)
x <- runif(n)
Knots <- c(0.25,0.5,0.75)
Knots2 <- c(0.125,0.25,0.375,0.5,0.625,0.75,0.875)
P <- bSpline(x,knots=Knots,Boundary.knots=c(0,1))
P2 <- bSpline(x,knots=Knots2,Boundary.knots=c(0,1))
The knots that make up the spline in P are contained in P2 but the output shows that none of the columns of P coincide with that of P2.