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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.