Hi, all I am trying to get the basis matrix and penalty matrix for natural cubic splines. In the "splines" package of R,"ns" can generate the B-spline basis matrix for a natural cubic spline. How can I get the basis matrix and penalty matrix for natural cubic spline. Thanks a lot! Lee [[alternative HTML version deleted]]
Frank E Harrell Jr
2010-Apr-09 15:30 UTC
[R] How to get the penalty matrix for natural cubic spline?
Yan Li wrote:> Hi, all > > I am trying to get the basis matrix and penalty matrix for natural > cubic splines. In the "splines" package of R,"ns" can > generate the B-spline basis matrix for a natural cubic spline. How can > I get the basis matrix and penalty matrix for natural cubic > spline. > > Thanks a lot! > > LeeIn usual practice the natural cubic spline does not use penalization. Frank -- Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University