Guest User

Untitled

a guest
Aug 30th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. library(splines)
  2. x = seq(1,10,0.01)
  3. b = bs(x, knots = c(2.5, 5, 7.5), degree = 3, intercept = TRUE)
  4. matplot(x, b, type = 'l')
  5. abline(v = c(2.5, 5, 7.5), lty = 2)
Add Comment
Please, Sign In to add comment