[R] Predicting New Data -

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Jan 6 18:13:51 CET 2013



On 04.01.2013 19:22, rydood wrote:
> 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?
>


Hard to debug given we neither have the formula nor the data.

Best,
Uwe Ligges



>
>
> --
> 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 at 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.
>




More information about the R-help mailing list