I try to understand how R obtain the values of the basis matrix with bs function. For example I create a vector :
A=c(1, 2,3)
And use the follow command
bs(A, knots = c(1,2 3), degree=1)
And I obtain this values
1 0 0 0
0 1 0 0
0 0 1 0
Can anyone explain how this values are obtained?