w3<- gam(o4_Dy$y ~ s(o4_Dy$x2 )+s(o4_Dy$x3 )+s(o4_Dy$x4 )+s(o4_Dy$x5 ), data =o4_Dy )
o4_Dy<-o1_Dy
o4x<-o3_Dy[,-1]
o4x<-o4x[,-5]
GAM<-predict(w3,newdata=o4x)
Error in model.frame.default(ff, data = newdata, na.action = na.act) :
参数'o4_Dy'的种类(list)不对
此外: Warning message:
In predict.gam(w3, newdata = o4x) :
not all required variables have been supplied in newdata!
请问什么原因?求坛友帮助