[R] basis and penalty matrices for natural cubic splines

From: Wei Zhang <wxz118_at_yahoo.com>
Date: Sat 17 Dec 2005 - 09:26:27 EST


Hi,
I am trying to get the basis matrix and penalty matrix for natural cubic splines. I found R function "ns" can generate the B-spline basis matrix for a natural cubic spline; and "bsplinepen"
can compute the penalty matrix for functions expressed in terms of a B-spline basis. However, these two functions seem not compatible. I could not get the penalty matrix by "bsplinepen" using the basis matrix generated from "ns".
Anyone knows any compatible functions to give the basis
matrix and penalty matrix for natural cubic splines? Thanks a lot!
Wei



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 Sat Dec 17 09:35:08 2005

This archive was generated by hypermail 2.1.8 : Sat 17 Dec 2005 - 14:33:25 EST