[R] Classification trees problem.

Weidong Gu anopheles123 at gmail.com
Tue Aug 9 01:04:24 CEST 2011


?predict.rpart

Weidong Gu

On Mon, Aug 8, 2011 at 6:08 PM, Jose Bustos Melo <jbustosmelo at yahoo.es> wrote:
> Hello Everyone,
>
> I'm doing a Classification trees with categorical explanatory variables using library rpart and I would like to do a prediction for some data imputs. I don't know where's a function or how can I do it?. Is there someone can help ?? ¿. Here's the code that I'm using.
>
> library(rpart)
> fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis)
> plot(fit)
> text(fit, use.n=TRUE)
> #Someone can help me??
>
> I hope someone can help!
> Respect,
>
> José Bustos
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



More information about the R-help mailing list