powered by
PDA.Tree(i.class, i.data, weight = TRUE, lambda=1, ...)
PPindex.class
PP.optimize
data(iris) n <- nrow(iris) tot <- c(1:n) n.train <- round(n*0.9) train <- sample(tot,n.train) test <- tot[-train] Tree.result <- PDA.Tree(iris[train,5],iris[train,1:4]) Tree.result
Run the code above in your browser using DataLab