这个
x <- rnorm(100)
y <- rnorm(100)
gam(y ~ s(x))
## Family: gaussian
## Link function: identity
## Formula:
## y ~ s(x)
## Estimated degrees of freedom:
## 1 total = 2
## GCV score: 0.8116283
VGAM
加载包时发生故障:
library(VGAM)
gam(y ~ s(x))
##Error: $ operator is invalid for atomic vectors
两者都实现s()
了功能,但这不应该发生对吗?这是错误mgcv
还是VGAM
包装错误?