a vector of internal knots, excluding boundary knots
boundary
vector of external knots
degree
the degree of the spline. The broken stick model
requires linear splines, so the default is degree = 1.
Setting degree = 0 yields (crisp) dummy coding, and one
column less than for degree = 1.
warn
a logical indicating whether warnings from splines::bs()
should be given.
knotnames
Should the column names be the knots?
Value
A matrix with length(x) rows and length(breaks)
columns, with some extra attributes described by bs().