RAB {MLInterfaces} | R Documentation

## real adaboost (Friedman et al)

### Description

read adaboost ... a demonstration version

### Usage

    RAB(formula, data, maxiter=200, maxdepth=1)

### Arguments

`formula` | formula – the response variable must be coded -1, 1
`data` | data
`maxiter` | maxiter
`maxdepth` | maxdepth – passed to rpart

### Value

an instance of raboostCont

### Author(s)

Vince Carey <stvjc@channing.harvard.edu>

### References

Friedman et al Ann Stat 28/2 337

### Examples

    library(MASS)
    data(Pima.tr)
    data(Pima.te)
    Pima.all = rbind(Pima.tr, Pima.te)
    tonp = ifelse(Pima.all$type == "Yes", 1, -1)
    tonp = factor(tonp)
    Pima.all = data.frame(Pima.all[,1:7], mtype=tonp)
    fit1 = RAB(mtype~ped+glu+npreg+bmi+age, data=Pima.all[1:200,], maxiter=10, maxdepth=5)
    pfit1 = Predict(fit1, newdata=Pima.tr)
    table(Pima.tr$type, pfit1)

[Package MLInterfaces version 1.62.1 Index]