[R] Does this code execute the bagging correctly ?!

2016-04-04 Thread Majid Javanmard
Hello the code : set.seed(10) y<-c(1:1000) x1<-c(1:1000)*runif(1000,min=0,max=2) x2<-c(1:1000)*runif(1000,min=0,max=2) x3<-c(1:1000)*runif(1000,min=0,max=2) lm_fit<-lm(y~x1+x2+x3) summary(lm_fit) set.seed(10) all_data<-data.frame(y,x1,x2,x3) positions <-

[R] Boosting Algorithm for Regression (Adaboost.R2)

2016-03-30 Thread Majid Javanmard
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 ~ ",

[R] Bagging Question

2016-03-30 Thread Majid Javanmard
Hello here is the code implements bagging that I copied from net ( http://www.r-bloggers.com/improve-predictive-performance-in-r-with-bagging/) : set.seed(10) y<-c(1:1000) x1<-c(1:1000)*runif(1000,min=0,max=2) x2<-c(1:1000)*runif(1000,min=0,max=2) x3<-c(1:1000)*runif(1000,min=0,max=2)

[R] Confidence Interval for Ipred Bagging outputs ?

2016-03-19 Thread Majid Javanmard
Hello everyone here is the code that implements bagging using ipred package in R : library(ipred) library(mlbench) data("BostonHousing") # Test set error (nbagg=25, trees pruned): 3.41 (Breiman, 1996a, Table 8) mod <- bagging(medv ~ ., data=BostonHousing, coob=TRUE) print(mod) pred <-

[R] Is not really anybody answer me ????

2016-03-19 Thread Majid Javanmard
Hello I asked a question 3 times, but I got no answer for each of them. Thanks to R mailing list [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] Confidence Interval for Ipred Bagging outputs (please help)

2016-03-14 Thread Majid Javanmard
Hello everyone here is the code that implements bagging using ipred package : library(ipred) library(mlbench) data("BostonHousing") # Test set error (nbagg=25, trees pruned): 3.41 (Breiman, 1996a, Table 8) mod <- bagging(medv ~ ., data=BostonHousing, coob=TRUE) print(mod) pred <- predict(mod)

[R] Ipred Bagging Question

2016-03-12 Thread Majid Javanmard
Hello everyone here is the code that implements bagging using ipred package : library(ipred) library(mlbench) data("BostonHousing") # Test set error (nbagg=25, trees pruned): 3.41 (Breiman, 1996a, Table 8) mod <- bagging(medv ~ ., data=BostonHousing, coob=TRUE) print(mod) it`s output is just

[R] Ipred Bagging Question

2016-03-11 Thread Majid Javanmard
Hello everyone here is the code that implements bagging using ipred package : library(ipred) library(mlbench) data("BostonHousing") # Test set error (nbagg=25, trees pruned): 3.41 (Breiman, 1996a, Table 8) mod <- bagging(medv ~ ., data=BostonHousing, coob=TRUE) print(mod) it`s output is just

Re: [R] Is there any simple guide for spatialVx R package !?

2016-02-20 Thread Majid Javanmard
es specifically for the > sample data. > > There's some information at > https://www.ral.ucar.edu/projects/icp/SpatialVx/ > but sadly no tutorial. Still, those folks are probably better to contact > for package-specific questions. > > Sarah > > > On Saturday, February 20,

[R] Is there any simple guide for spatialVx R package !?

2016-02-20 Thread Majid Javanmard
bound by Arcmap ?! I really cant understand the tutorial of SpatialVx package, I appreciate if someone could response on this issue !! Many Thanks Majid Javanmard [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSU