On Wed, Aug 19, 2009 at 3:52 PM, Greg Snow wrote:
> Instead of using smooth.spline, use lm with spline terms, e.g.:
>
> > library(splines)
> > sp.fit <- lm(y~bs(x,4))
>
> Now both use predict.lm for the predictions and all will be consistent.
>
> Hope this helps,
>
> --
> Gregory (Greg) L. Snow P
Instead of using smooth.spline, use lm with spline terms, e.g.:
> library(splines)
> sp.fit <- lm(y~bs(x,4))
Now both use predict.lm for the predictions and all will be consistent.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail