Hello I am new to R , Is there any code to run Adaboost.R2 in r ?! I wrote a code from example of gbm package, but I can not have prediction interval would you help me ?!
library(gbm) mm <- read.table("E:/bagg.txt",TRUE) xnam <- paste("x", 1:50, sep="") fmla <- as.formula(paste("y ~ ", paste(xnam, collapse= "+"))) gbm1 <- gbm(fmla, data=mm, n.trees=100, distribution="gaussian", interaction.depth=3, bag.fraction=0.5, train.fraction=1.0, shrinkage=0.1, keep.data=TRUE) pred <- predict(gbm1,n.trees=100) pred <- as.data.frame(pred) Thanks [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.