[R] Closed form for regression splines

From: Stephen A Roberts <Steve.Roberts_at_manchester.ac.uk>
Date: Tue 06 Dec 2005 - 00:36:29 EST


I have a model fitted using bs() and need to be able to write down a closed form for the spline function to enable the use of the fitted model outside R. Does anyone know a simple way of extracting the piecewise cubics from the coefficients and knots? As far as I know they are defined by recurrence relationships, but the R implementation is buried in C code, and I guess in non-trivial to invert. I know about predict.bs() within R, but I want the full piecewise cubic.


  Dr Steve Roberts

Senior Lecturer in Medical Statistics,
Biostatistics Group,
University of Manchester,

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 Dec 06 00:48:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:28 EST