[R] ns() (pkg splines) vs rcs() (pkg Design)

Moko Kosta mokokosta at yahoo.com
Wed Oct 25 17:20:45 CEST 2006


Dear R-helpers,

Why the following calls result in a different output:

library(splines)
library(Design)

x <- rnorm(10)
ns(x, knots = 0, Boundary.knots = c(-1, 1))
rcs(x, c(-1, 0, 1))



Thanks in advance for any hints.

Kind Regards,
Moko Kosta



More information about the R-help mailing list