cv.glm() report warnings and return wrong value when using basic spline function bs() in regression

后端 未结 0 1377
忘了有多久
忘了有多久 2020-11-30 09:03

I tried to use cross validation to find the optimal degrees of freedom for bs().

cv.error= rep (0 ,7)
for (i in 4:10) {
  lm.fit=lm(nox~bs(dis, df=i),data = B         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题