[R] Predicting New Data -
rydood
dood.ryan at aoins.com
Fri Jan 4 19:22:01 CET 2013
I am having trouble predicting new data with a model created from package
mboost:
> mb1<-glmboost(as.formula(formula1),data=data_train,control=boost_control(mstop=400,nu=.1))
> f.predict<-predict(mb1,newdata=data_train)
Error in scale.default(X, center = cm, scale = FALSE) :
length of 'center' must equal the number of columns of 'x'
Ultimately I want to predict "data_test", but the orginal dataset won't even
work. However, predict(mb1) does work. What am I doing wrong?
--
View this message in context: http://r.789695.n4.nabble.com/Predicting-New-Data-tp4654677.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list