[R] Restricted cubic spline function ERROR?: glm(Y~rcs(x,5))

Jan Verbesselt Jan.Verbesselt at biw.kuleuven.be
Mon May 2 10:06:55 CEST 2005

Dear all,

Is the restricted cubic spline function working properly in the glm model?

We used glm(y~rcs(x,5), family=binomial) but it seems that for some
theoretical reasons the rcs, restricted cubic spline function can not be
fitted by a glm function. Is this correct?


((Originally, we used lrm(y~ rcs(x,5)) but we couldn't find how to derive
the AIC value of the fitted model. Is there a solution?))

More information about the R-help mailing list