[R] bs() function of the splines package with intercept=FALSE

From: Eddy G. <eddy_lolo_at_hotmail.com>
Date: Tue 14 Jun 2005 - 22:10:03 EST


I'm implementing a function using non uniform B-Splines. Looking at the code of the bs() function, I realized that if the intercept was set to FALSE, the behavior of the function was the following (df is the number of degrees of freedom that I believe can be interpreted as the number of control points):

This results in a design matrix with df+1 columns. The bs function the _removes_ the first column of the matrix (resulting as expected in a matrix with df columns).

I'm a bit confused, does anyone see the mathematical justification of this manipulation?

Thanks a lot,



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 14 22:19:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:34 EST