Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(mgcv)
- x3 <- as.factor(x3)
- my.model <- gam(y ~ s(x1) + s(x2) + x3, method = "REML")
- summary(my.model)
- plot(my.model, shade=TRUE, pages=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement