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 <-
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 ~ ",
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)
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 <-
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
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)
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
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
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,
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
10 matches
Mail list logo