Closed a-torgovitsky closed 3 years ago
This was happening because R likes to convert matrices with one row or one column into a vector. In the second specification, since there is only one knot and no intercept, the spline component consists of just 1 variable. That means a matrix with only one column, and at some point R converts that into a vector. This has now been corrected.
Thanks
This was happening because R likes to convert matrices with one row or one column into a vector.
I've certainly run into this before. It's a bit annoying.
data_example.csv.zip
This works
but if I only have a single knot, I get an error
yields