\HeaderA{RAB}{real adaboost (Friedman et al)}{RAB}
\aliasA{DAB}{RAB}{DAB}
\aliasA{mkfmla}{RAB}{mkfmla}
\aliasA{Predict}{RAB}{Predict}
\aliasA{Predict,daboostCont-method}{RAB}{Predict,daboostCont.Rdash.method}
\aliasA{Predict,raboostCont-method}{RAB}{Predict,raboostCont.Rdash.method}
\aliasA{RAB4es}{RAB}{RAB4es}
\aliasA{tonp}{RAB}{tonp}
\keyword{models}{RAB}
\begin{Description}\relax
read adaboost ... a demonstration version
\end{Description}
\begin{Usage}
\begin{verbatim}
RAB(formula, data, maxiter=200, maxdepth=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] formula -- the response variable must be coded -1, 1
\item[\code{data}] data
\item[\code{maxiter}] maxiter
\item[\code{maxdepth}] maxdepth -- passed to rpart
\end{ldescription}
\end{Arguments}
\begin{Value}
an instance of raboostCont
\end{Value}
\begin{Author}\relax
Vince Carey \textless{}stvjc@channing.harvard.edu\textgreater{}
\end{Author}
\begin{References}\relax
Friedman et al Ann Stat 28/2 337
\end{References}
\begin{Examples}
\begin{ExampleCode}
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)
\end{ExampleCode}
\end{Examples}

