标签: r spline gam mgcv
请考虑以下代码:
library(mgcv) x1 = runif(50) x2 = sample(1:10, 50, replace=T) y = rnorm(50) m = gam(y~s(x1)+s(x2))
以下是我的问题:
?smooth.terms
x1
x2