search for: meansalesw

Displaying 1 result from an estimated 1 matches for "meansalesw".

2008 Jun 11
1
mgcv::gam error message for predict.gam
Sometimes, for specific models, I get this error from predict.gam in library mgcv: Error in complete.cases(object) : negative length vectors are not allowed Here's an example: model.calibrate <- gam(meansalesw ~ s(tscore,bs="cs",k=4), data=toplot, weights=weight, gam.method="perf.magic") > test <- predict(model.calibrate,newdata) Error in complete.cases(object) : negative length vectors are not allowed > The data is shown below: > toplot[,c("mea...